fix config path broken in kubeadm
This commit is contained in:
@@ -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) {
|
|||||||
{
|
{
|
||||||
expected: api.VolumeMount{
|
expected: api.VolumeMount{
|
||||||
Name: "k8s",
|
Name: "k8s",
|
||||||
MountPath: "/etc/kubernetes/",
|
MountPath: kubeadmapi.GlobalEnvParams.KubernetesDir,
|
||||||
ReadOnly: true,
|
ReadOnly: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user