Commit 4ec40e37 authored by xilabao's avatar xilabao

fix config path broken in kubeadm

parent fe44d1f5
...@@ -242,7 +242,7 @@ func k8sVolume(cfg *kubeadmapi.MasterConfiguration) api.Volume { ...@@ -242,7 +242,7 @@ func k8sVolume(cfg *kubeadmapi.MasterConfiguration) api.Volume {
func k8sVolumeMount() api.VolumeMount { func k8sVolumeMount() api.VolumeMount {
return api.VolumeMount{ return api.VolumeMount{
Name: "k8s", Name: "k8s",
MountPath: "/etc/kubernetes/", MountPath: kubeadmapi.GlobalEnvParams.KubernetesDir,
ReadOnly: true, ReadOnly: true,
} }
} }
......
...@@ -299,7 +299,7 @@ func TestK8sVolumeMount(t *testing.T) { ...@@ -299,7 +299,7 @@ func TestK8sVolumeMount(t *testing.T) {
{ {
expected: api.VolumeMount{ expected: api.VolumeMount{
Name: "k8s", Name: "k8s",
MountPath: "/etc/kubernetes/", MountPath: kubeadmapi.GlobalEnvParams.KubernetesDir,
ReadOnly: true, 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