fix config path broken in kubeadm

This commit is contained in:
xilabao 2017-04-21 14:14:20 +08:00
parent fe44d1f5ce
commit 4ec40e3789
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,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,
}
}

View File

@ -299,7 +299,7 @@ func TestK8sVolumeMount(t *testing.T) {
{
expected: api.VolumeMount{
Name: "k8s",
MountPath: "/etc/kubernetes/",
MountPath: kubeadmapi.GlobalEnvParams.KubernetesDir,
ReadOnly: true,
},
},