mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
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 ```
This commit is contained in:
commit
dacb9ad692
@ -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",
|
||||||
@ -1389,6 +1391,7 @@ func createProvisionerDaemonset(config *localTestConfig) {
|
|||||||
{
|
{
|
||||||
Name: "local-disks",
|
Name: "local-disks",
|
||||||
MountPath: provisionerDefaultMountRoot,
|
MountPath: provisionerDefaultMountRoot,
|
||||||
|
MountPropagation: &mountProp,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user