bootstrapper: pass patches to kubeadm

This commit is contained in:
Markus Rudy 2023-12-14 15:12:47 +01:00 committed by Markus Rudy
parent 070c23f876
commit ce9e25c150

View File

@ -54,6 +54,7 @@ func (c *KubdeadmConfiguration) InitConfiguration(externalCloudProvider bool, cl
LocalAPIEndpoint: kubeadm.APIEndpoint{
BindPort: constants.KubernetesPort,
},
Patches: &kubeadm.Patches{Directory: constants.KubeadmPatchDir},
},
// https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3#ClusterConfiguration
ClusterConfiguration: kubeadm.ClusterConfiguration{
@ -179,6 +180,7 @@ func (c *KubdeadmConfiguration) JoinConfiguration(externalCloudProvider bool) Ku
Discovery: kubeadm.Discovery{
BootstrapToken: &kubeadm.BootstrapTokenDiscovery{},
},
Patches: &kubeadm.Patches{Directory: constants.KubeadmPatchDir},
},
KubeletConfiguration: kubeletconf.KubeletConfiguration{
TypeMeta: metav1.TypeMeta{