Skip to content

Commit 1433cd1

Browse files
committed
Fix critical addons
1 parent 08fa4c2 commit 1433cd1

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

tests/integration/update_cluster/karpenter/data/aws_s3_object_minimal.example.com-addons-aws-ebs-csi-driver.addons.k8s.io-k8s-1.17_content

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,10 @@ spec:
11431143
- effect: NoExecute
11441144
operator: Exists
11451145
tolerationSeconds: 300
1146+
- key: node-role.kubernetes.io/master
1147+
operator: Exists
1148+
- key: node-role.kubernetes.io/control-plane
1149+
operator: Exists
11461150
topologySpreadConstraints:
11471151
- labelSelector:
11481152
matchLabels:

tests/integration/update_cluster/karpenter/data/aws_s3_object_minimal.example.com-addons-bootstrap_content

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
version: 9.99.0
1515
- id: k8s-1.12
1616
manifest: coredns.addons.k8s.io/k8s-1.12.yaml
17-
manifestHash: e20290a5b4c7a1dd1596b4a9adb1e7ecbf9efbe0aa0a51b8e09334c97e1ec9cb
17+
manifestHash: a9f7533d4e22fbdc3a01a228b1a66b0f8b3d220aebbd6b6ba5fec3c814ffbec4
1818
name: coredns.addons.k8s.io
1919
selector:
2020
k8s-addon: coredns.addons.k8s.io
@@ -55,7 +55,7 @@ spec:
5555
version: 9.99.0
5656
- id: k8s-1.17
5757
manifest: aws-ebs-csi-driver.addons.k8s.io/k8s-1.17.yaml
58-
manifestHash: 9b572e5cdf70d0e576656a1c501d6f3550e379301dce9cc9f11f71bf2c4d5c2b
58+
manifestHash: 843ef8065849e62fc5e09aa77d94cffd9691de8cb6ae3f443ba97c4292c304ee
5959
name: aws-ebs-csi-driver.addons.k8s.io
6060
selector:
6161
k8s-addon: aws-ebs-csi-driver.addons.k8s.io

tests/integration/update_cluster/karpenter/data/aws_s3_object_minimal.example.com-addons-coredns.addons.k8s.io-k8s-1.12_content

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ spec:
380380
memory: 10Mi
381381
nodeSelector:
382382
kubernetes.io/os: linux
383-
priorityClassName: system-cluster-critical
384383
serviceAccountName: coredns-autoscaler
385384
tolerations:
386385
- key: CriticalAddonsOnly

upup/models/cloudup/resources/addons/aws-ebs-csi-driver.addons.k8s.io/k8s-1.17.yaml.template

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,12 @@ spec:
719719
- effect: NoExecute
720720
operator: Exists
721721
tolerationSeconds: 300
722+
{{- if KarpenterEnabled }}
723+
- key: node-role.kubernetes.io/master
724+
operator: Exists
725+
- key: node-role.kubernetes.io/control-plane
726+
operator: Exists
727+
{{- end }}
722728
{{ end }}
723729
securityContext:
724730
fsGroup: 1000

upup/models/cloudup/resources/addons/coredns.addons.k8s.io/k8s-1.12.yaml.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,9 @@ spec:
361361
- --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"preventSinglePointFailure":true}}
362362
- --logtostderr=true
363363
- --v=2
364+
{{- if not KarpenterEnabled }}
364365
priorityClassName: system-cluster-critical
366+
{{- end }}
365367
tolerations:
366368
{{- if KubeDNS.Tolerations }}
367369
{{ ToYAML .KubeDNS.Tolerations | indent 8 }}

0 commit comments

Comments
 (0)