Skip to content

Commit e55c6bf

Browse files
authored
Merge pull request kubernetes-sigs#9698 from killianmuldoon/pr-allow-kubeconfig-patch
🐛 Allow dropping patches KubeadmControlPlane KubeadmConfig
2 parents 3d3dcc6 + 3107028 commit e55c6bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controlplane/kubeadm/internal/webhooks/kubeadm_control_plane.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ func (webhook *KubeadmControlPlane) ValidateUpdate(_ context.Context, oldObj, ne
177177
{spec, kubeadmConfigSpec, initConfiguration, nodeRegistration},
178178
{spec, kubeadmConfigSpec, initConfiguration, nodeRegistration, "*"},
179179
{spec, kubeadmConfigSpec, initConfiguration, patches, directory},
180+
{spec, kubeadmConfigSpec, initConfiguration, patches},
180181
{spec, kubeadmConfigSpec, initConfiguration, skipPhases},
181182
{spec, kubeadmConfigSpec, joinConfiguration, nodeRegistration},
182183
{spec, kubeadmConfigSpec, joinConfiguration, nodeRegistration, "*"},
183184
{spec, kubeadmConfigSpec, joinConfiguration, patches, directory},
185+
{spec, kubeadmConfigSpec, joinConfiguration, patches},
184186
{spec, kubeadmConfigSpec, joinConfiguration, skipPhases},
185187
{spec, kubeadmConfigSpec, preKubeadmCommands},
186188
{spec, kubeadmConfigSpec, postKubeadmCommands},

0 commit comments

Comments
 (0)