Skip to content

Commit 9b02457

Browse files
authored
fix: Remove deprecated toleration for node-role.kubernetes.io/master (#895)
This was removed in Kubernetes v1.24 so is no longer needed and actually throws a warning now if it is kept when applying manifests: ``` [KubeAPIWarningLogger] spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[1].preference.matchExpressions[0].key: node-role.kubernetes.io/master is use "node-role.kubernetes.io/control-plane" instead ``` Removal note in https://kubernetes.io/blog/2022/04/07/upcoming-changes-in-kubernetes-1-24/#api-removals-deprecations-and-other-changes-for-kubernetes-1-24. Blocked by #893.
1 parent 73b1648 commit 9b02457

File tree

21 files changed

+26
-59
lines changed

21 files changed

+26
-59
lines changed

charts/cluster-api-runtime-extensions-nutanix/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ A Helm chart for cluster-api-runtime-extensions-nutanix
100100
| service.annotations | object | `{}` | |
101101
| service.port | int | `443` | |
102102
| service.type | string | `"ClusterIP"` | |
103-
| tolerations | list | `[{"effect":"NoSchedule","key":"node-role.kubernetes.io/master","operator":"Equal"},{"effect":"NoSchedule","key":"node-role.kubernetes.io/control-plane","operator":"Equal"}]` | Kubernetes pod tolerations |
103+
| tolerations | list | `[{"effect":"NoSchedule","key":"node-role.kubernetes.io/control-plane","operator":"Equal"}]` | Kubernetes pod tolerations |

charts/cluster-api-runtime-extensions-nutanix/templates/ccm/aws/manifests/aws-ccm-v1.27.9-configmap.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ data:
177177
- effect: NoSchedule
178178
key: node.cloudprovider.kubernetes.io/uninitialized
179179
value: "true"
180-
- effect: NoSchedule
181-
key: node-role.kubernetes.io/master
182180
- effect: NoSchedule
183181
key: node-role.kubernetes.io/control-plane
184182
updateStrategy:

charts/cluster-api-runtime-extensions-nutanix/templates/ccm/aws/manifests/aws-ccm-v1.28.9-configmap.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ data:
177177
- effect: NoSchedule
178178
key: node.cloudprovider.kubernetes.io/uninitialized
179179
value: "true"
180-
- effect: NoSchedule
181-
key: node-role.kubernetes.io/master
182180
- effect: NoSchedule
183181
key: node-role.kubernetes.io/control-plane
184182
updateStrategy:

charts/cluster-api-runtime-extensions-nutanix/templates/ccm/aws/manifests/aws-ccm-v1.29.6-configmap.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ data:
177177
- effect: NoSchedule
178178
key: node.cloudprovider.kubernetes.io/uninitialized
179179
value: "true"
180-
- effect: NoSchedule
181-
key: node-role.kubernetes.io/master
182180
- effect: NoSchedule
183181
key: node-role.kubernetes.io/control-plane
184182
updateStrategy:

charts/cluster-api-runtime-extensions-nutanix/templates/ccm/aws/manifests/aws-ccm-v1.30.2-configmap.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ data:
177177
- effect: NoSchedule
178178
key: node.cloudprovider.kubernetes.io/uninitialized
179179
value: "true"
180-
- effect: NoSchedule
181-
key: node-role.kubernetes.io/master
182180
- effect: NoSchedule
183181
key: node-role.kubernetes.io/control-plane
184182
updateStrategy:

charts/cluster-api-runtime-extensions-nutanix/templates/ccm/aws/manifests/aws-ccm-v1.31.0-configmap.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ data:
177177
- effect: NoSchedule
178178
key: node.cloudprovider.kubernetes.io/uninitialized
179179
value: "true"
180-
- effect: NoSchedule
181-
key: node-role.kubernetes.io/master
182180
- effect: NoSchedule
183181
key: node-role.kubernetes.io/control-plane
184182
updateStrategy:

charts/cluster-api-runtime-extensions-nutanix/templates/ccm/aws/manifests/helm-addon-installation.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,13 @@ data:
3131
{{ "{{" }}$ccmVersion := get $k8sMinorVersionToCCMVersion ( print $clusterSemver.Major "." $clusterSemver.Minor ) {{ "}}" }}
3232
image:
3333
tag: {{ "{{ " }} $ccmVersion {{ "}}" }}
34+
35+
tolerations:
36+
- key: node.cloudprovider.kubernetes.io/uninitialized
37+
value: "true"
38+
effect: NoSchedule
39+
- key: node-role.kubernetes.io/control-plane
40+
effect: NoSchedule
41+
42+
3443
{{- end -}}

charts/cluster-api-runtime-extensions-nutanix/templates/csi/aws-ebs/manifests/aws-ebs-csi-configmap.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,6 @@ data:
786786
- effect: NoExecute
787787
operator: Exists
788788
tolerationSeconds: 300
789-
- effect: NoSchedule
790-
key: node-role.kubernetes.io/master
791-
operator: Exists
792789
- effect: NoSchedule
793790
key: node-role.kubernetes.io/control-plane
794791
operator: Exists

charts/cluster-api-runtime-extensions-nutanix/templates/csi/aws-ebs/manifests/helm-addon-installation.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ data:
2222
- effect: NoExecute
2323
operator: Exists
2424
tolerationSeconds: 300
25-
- effect: NoSchedule
26-
key: node-role.kubernetes.io/master
27-
operator: Exists
2825
- effect: NoSchedule
2926
key: node-role.kubernetes.io/control-plane
3027
operator: Exists

charts/cluster-api-runtime-extensions-nutanix/templates/csi/local-path/manifests/helm-addon-installation.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ data:
1919
- effect: NoExecute
2020
operator: Exists
2121
tolerationSeconds: 300
22-
- effect: NoSchedule
23-
key: node-role.kubernetes.io/master
24-
operator: Exists
2522
- effect: NoSchedule
2623
key: node-role.kubernetes.io/control-plane
2724
operator: Exists

0 commit comments

Comments
 (0)