Skip to content

Commit b1a73fa

Browse files
committed
Enable kubeadm ControlPlaneKubeletLocalMode feature gate
Signed-off-by: Stefan Büringer [email protected]
1 parent c5b4e93 commit b1a73fa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/e2e/data/infrastructure-docker/main/clusterclass-quick-start.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,20 @@ spec:
480480
path: "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/v"
481481
valueFrom:
482482
variable: kubeletLogLevel
483+
- name: kubeadmFeatureGate
484+
description: "Sets the ControlPlaneKubeletLocalMode feature gate for Kubernetes >= 1.31"
485+
definitions:
486+
- selector:
487+
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
488+
kind: KubeadmControlPlaneTemplate
489+
matchResources:
490+
controlPlane: true
491+
jsonPatches:
492+
- op: add
493+
path: "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/featureGates"
494+
value:
495+
ControlPlaneKubeletLocalMode: true
496+
enabledIf: '{{ semverCompare ">= v1.31.0-0" .builtin.controlPlane.version }}'
483497
---
484498
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
485499
kind: DockerClusterTemplate

0 commit comments

Comments
 (0)