Unverified Commit dacb9ad6 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #62411 from msau42/local-e2e-mountprop

Automatic merge from submit-queue (batch tested with PRs 62455, 62465, 62427, 62416, 62411). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Set slave mount propagation for local provisioner **What this PR does / why we need it**: Explicitly set slave mount propagation instead of assuming it's the default mode. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents 03b80bd2 bf70c0af
...@@ -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