From fc4c4a2e62e09a69de84d1dcbbe04a63c5bc2a41 Mon Sep 17 00:00:00 2001 From: killianmuldoon Date: Thu, 9 Nov 2023 12:46:50 +0000 Subject: [PATCH] Allow dropping patches KubeadmControlPlane KubeadmConfig Signed-off-by: killianmuldoon --- .../kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go b/controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go index 437a7aa9903e..4d3f3044b8ab 100644 --- a/controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go +++ b/controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go @@ -156,10 +156,12 @@ func (in *KubeadmControlPlane) ValidateUpdate(old runtime.Object) error { {spec, kubeadmConfigSpec, initConfiguration, nodeRegistration}, {spec, kubeadmConfigSpec, initConfiguration, nodeRegistration, "*"}, {spec, kubeadmConfigSpec, initConfiguration, patches, directory}, + {spec, kubeadmConfigSpec, initConfiguration, patches}, {spec, kubeadmConfigSpec, initConfiguration, skipPhases}, {spec, kubeadmConfigSpec, joinConfiguration, nodeRegistration}, {spec, kubeadmConfigSpec, joinConfiguration, nodeRegistration, "*"}, {spec, kubeadmConfigSpec, joinConfiguration, patches, directory}, + {spec, kubeadmConfigSpec, joinConfiguration, patches}, {spec, kubeadmConfigSpec, joinConfiguration, skipPhases}, {spec, kubeadmConfigSpec, preKubeadmCommands}, {spec, kubeadmConfigSpec, postKubeadmCommands},