mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +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 {
|
||||
return api.VolumeMount{
|
||||
Name: "k8s",
|
||||
MountPath: "/etc/kubernetes/",
|
||||
MountPath: kubeadmapi.GlobalEnvParams.KubernetesDir,
|
||||
ReadOnly: true,
|
||||
}
|
||||
}
|
||||
|
@ -299,7 +299,7 @@ func TestK8sVolumeMount(t *testing.T) {
|
||||
{
|
||||
expected: api.VolumeMount{
|
||||
Name: "k8s",
|
||||
MountPath: "/etc/kubernetes/",
|
||||
MountPath: kubeadmapi.GlobalEnvParams.KubernetesDir,
|
||||
ReadOnly: true,
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user