Skip to content

Commit b3910a8

Browse files
author
Martin Linkhorst
committed
change conditional so that it doesn't trigger node rolls when disabled
1 parent 320b869 commit b3910a8

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

cluster/manifests/kube-proxy/configmap.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ data:
2525
featureGates:
2626
TopologyAwareHints: {{ .Cluster.ConfigItems.enable_topology_aware_hints }}
2727
SizeMemoryBackedVolumes: {{ .Cluster.ConfigItems.enable_size_memory_backed_volumes }}
28-
ImageVolume: {{ .Cluster.ConfigItems.enable_image_volumes }}
28+
{{- if eq .Cluster.ConfigItems.enable_image_volumes "true" }}
29+
ImageVolume: true
30+
{{- end }}
2931
healthzBindAddress: 127.0.0.1:10256
3032
hostnameOverride: ""
3133
iptables:

cluster/node-pools/master-default/userdata.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ write_files:
2929
{{- end }}
3030
featureGates:
3131
SizeMemoryBackedVolumes: {{ .Cluster.ConfigItems.enable_size_memory_backed_volumes }}
32-
ImageVolume: {{ .Cluster.ConfigItems.enable_image_volumes }}
32+
{{- if eq .Cluster.ConfigItems.enable_image_volumes "true" }}
33+
ImageVolume: true
34+
{{- end }}
3335
podPidsLimit: {{ .NodePool.ConfigItems.pod_max_pids }}
3436
maxPods: {{ nodeCIDRMaxPods (parseInt64 .Cluster.ConfigItems.node_cidr_mask_size) 8 }}
3537
{{- if ne .Cluster.ConfigItems.serialize_image_pulls "true" }}
@@ -153,7 +155,7 @@ write_files:
153155
- "--oidc-username-prefix=okta:"
154156
- --oidc-groups-claim=groups
155157
- "--oidc-groups-prefix=okta:"
156-
- --feature-gates=HPAScaleToZero={{ .Cluster.ConfigItems.enable_hpa_scale_to_zero }},StatefulSetAutoDeletePVC={{ .Cluster.ConfigItems.enable_statefulset_autodelete_pvc }},TopologyAwareHints={{ .Cluster.ConfigItems.enable_topology_aware_hints }},MaxUnavailableStatefulSet={{.Cluster.ConfigItems.max_unavailable_statefulset_enabled}},KMSv1=true,ImageVolume={{.Cluster.ConfigItems.enable_image_volumes}}
158+
- --feature-gates=HPAScaleToZero={{ .Cluster.ConfigItems.enable_hpa_scale_to_zero }},StatefulSetAutoDeletePVC={{ .Cluster.ConfigItems.enable_statefulset_autodelete_pvc }},TopologyAwareHints={{ .Cluster.ConfigItems.enable_topology_aware_hints }},MaxUnavailableStatefulSet={{.Cluster.ConfigItems.max_unavailable_statefulset_enabled}},KMSv1=true{{if eq .Cluster.ConfigItems.enable_image_volumes "true"}},ImageVolume=true{{end}}
157159
- --service-account-key-file=/etc/kubernetes/ssl/service-account-public-key.pem
158160
- --service-account-signing-key-file=/etc/kubernetes/ssl/service-account-private-key.pem
159161
- --service-account-issuer={{ .Cluster.APIServerURL }}
@@ -618,7 +620,7 @@ write_files:
618620
- --root-ca-file=/etc/kubernetes/ssl/ca.pem
619621
- --cloud-provider=external
620622
- --cloud-config=/etc/kubernetes/cloud-config.ini
621-
- --feature-gates=StatefulSetAutoDeletePVC={{ .Cluster.ConfigItems.enable_statefulset_autodelete_pvc }},TopologyAwareHints={{ .Cluster.ConfigItems.enable_topology_aware_hints }},MaxUnavailableStatefulSet={{.Cluster.ConfigItems.max_unavailable_statefulset_enabled}},ImageVolume={{.Cluster.ConfigItems.enable_image_volumes}}
623+
- --feature-gates=StatefulSetAutoDeletePVC={{ .Cluster.ConfigItems.enable_statefulset_autodelete_pvc }},TopologyAwareHints={{ .Cluster.ConfigItems.enable_topology_aware_hints }},MaxUnavailableStatefulSet={{.Cluster.ConfigItems.max_unavailable_statefulset_enabled}}{{if eq .Cluster.ConfigItems.enable_image_volumes "true"}},ImageVolume=true{{end}}
622624
- --use-service-account-credentials=true
623625
- --configure-cloud-routes=false
624626
- --allocate-node-cidrs=true

cluster/node-pools/worker-splitaz/userdata.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ write_files:
7979
{{- end }}
8080
featureGates:
8181
SizeMemoryBackedVolumes: {{ .Cluster.ConfigItems.enable_size_memory_backed_volumes }}
82-
ImageVolume: {{ .Cluster.ConfigItems.enable_image_volumes }}
82+
{{- if eq .Cluster.ConfigItems.enable_image_volumes "true" }}
83+
ImageVolume: true
84+
{{- end }}
8385
{{- if eq .NodePool.ConfigItems.exec_probe_timeout_enabled "false" }}
8486
ExecProbeTimeout: false
8587
{{- end }}

0 commit comments

Comments
 (0)