From 60b1cb78d7b2d110a4e466f6c1dfc3d23123a970 Mon Sep 17 00:00:00 2001 From: Max Fedotov Date: Fri, 11 Aug 2023 18:11:33 +0300 Subject: [PATCH] Allow to drop useExperimentalRetryJoin field from KubeadmControlPlane.kubeadmConfigSpec --- .../kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go b/controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go index 9db8198d29ce..80fc75226ba0 100644 --- a/controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go +++ b/controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go @@ -140,6 +140,7 @@ func (in *KubeadmControlPlane) ValidateUpdate(old runtime.Object) (admission.War // For example, {"spec", "*"} will allow any path under "spec" to change. allowedPaths := [][]string{ {"metadata", "*"}, + {spec, kubeadmConfigSpec, "useExperimentalRetryJoin"}, {spec, kubeadmConfigSpec, clusterConfiguration, "etcd", "local", "imageRepository"}, {spec, kubeadmConfigSpec, clusterConfiguration, "etcd", "local", "imageTag"}, {spec, kubeadmConfigSpec, clusterConfiguration, "etcd", "local", "extraArgs"},