mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Set slave mount propagation for local provisioner
This commit is contained in:
parent
1102fd0dcb
commit
bf70c0af4e
@ -1337,6 +1337,8 @@ func createVolumeConfigMap(config *localTestConfig) {
|
||||
|
||||
func createProvisionerDaemonset(config *localTestConfig) {
|
||||
provisionerPrivileged := true
|
||||
mountProp := v1.MountPropagationHostToContainer
|
||||
|
||||
provisioner := &extv1beta1.DaemonSet{
|
||||
TypeMeta: metav1.TypeMeta{
|
||||
Kind: "DaemonSet",
|
||||
@ -1387,8 +1389,9 @@ func createProvisionerDaemonset(config *localTestConfig) {
|
||||
MountPath: "/etc/provisioner/config/",
|
||||
},
|
||||
{
|
||||
Name: "local-disks",
|
||||
MountPath: provisionerDefaultMountRoot,
|
||||
Name: "local-disks",
|
||||
MountPath: provisionerDefaultMountRoot,
|
||||
MountPropagation: &mountProp,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user