mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
fix config path broken in kubeadm
This commit is contained in:
parent
fe44d1f5ce
commit
4ec40e3789
@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user