Commit fb72285a authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #44753 from xilabao/fix-config-path-broken

Automatic merge from submit-queue (batch tested with PRs 44583, 44139, 44753) fix config path broken in kubeadm fixes https://github.com/kubernetes/kubeadm/issues/234
parents 81d6fedb 4ec40e37
......@@ -264,7 +264,7 @@ func k8sVolume(cfg *kubeadmapi.MasterConfiguration) api.Volume {
func k8sVolumeMount() api.VolumeMount {
return api.VolumeMount{
Name: "k8s",
MountPath: "/etc/kubernetes/",
MountPath: kubeadmapi.GlobalEnvParams.KubernetesDir,
ReadOnly: true,
}
}
......
......@@ -370,7 +370,7 @@ func TestK8sVolumeMount(t *testing.T) {
{
expected: api.VolumeMount{
Name: "k8s",
MountPath: "/etc/kubernetes/",
MountPath: kubeadmapi.GlobalEnvParams.KubernetesDir,
ReadOnly: true,
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment