Skip to content

Commit 39e6dc0

Browse files
authored
Merge pull request #1038 from zexi/automated-cherry-pick-of-#1037-upstream-master
Automated cherry pick of #1037: fix(operator): use bidirectional mount for telegraf component
2 parents 17c903b + e62301c commit 39e6dc0

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

pkg/manager/component/telegraf.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,16 @@ func NewTelegrafVolume(
177177
MountPath: path.Join(hostRoot, "/sys"),
178178
},
179179
{
180-
Name: "root",
181-
ReadOnly: true,
182-
MountPath: hostRoot,
180+
Name: "root",
181+
ReadOnly: true,
182+
MountPath: hostRoot,
183+
MountPropagation: &bidirectional,
183184
},
184185
{
185-
Name: "run",
186-
ReadOnly: false,
187-
MountPath: "/var/run",
186+
Name: "run",
187+
ReadOnly: false,
188+
MountPath: "/var/run",
189+
MountPropagation: &bidirectional,
188190
},
189191
{
190192
Name: "dev",

0 commit comments

Comments
 (0)