Commit bf70c0af authored by Michelle Au's avatar Michelle Au

Set slave mount propagation for local provisioner

parent 1102fd0d
...@@ -1337,6 +1337,8 @@ func createVolumeConfigMap(config *localTestConfig) { ...@@ -1337,6 +1337,8 @@ func createVolumeConfigMap(config *localTestConfig) {
func createProvisionerDaemonset(config *localTestConfig) { func createProvisionerDaemonset(config *localTestConfig) {
provisionerPrivileged := true provisionerPrivileged := true
mountProp := v1.MountPropagationHostToContainer
provisioner := &extv1beta1.DaemonSet{ provisioner := &extv1beta1.DaemonSet{
TypeMeta: metav1.TypeMeta{ TypeMeta: metav1.TypeMeta{
Kind: "DaemonSet", Kind: "DaemonSet",
...@@ -1387,8 +1389,9 @@ func createProvisionerDaemonset(config *localTestConfig) { ...@@ -1387,8 +1389,9 @@ func createProvisionerDaemonset(config *localTestConfig) {
MountPath: "/etc/provisioner/config/", MountPath: "/etc/provisioner/config/",
}, },
{ {
Name: "local-disks", Name: "local-disks",
MountPath: provisionerDefaultMountRoot, MountPath: provisionerDefaultMountRoot,
MountPropagation: &mountProp,
}, },
}, },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment