File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -482,6 +482,7 @@ func buildSmbdCtr(
482
482
},
483
483
},
484
484
},
485
+ SecurityContext : ctrPrivSecurityContext (),
485
486
}
486
487
}
487
488
@@ -589,6 +590,7 @@ func buildSvcWatchCtr(
589
590
Name : "svc-watch" ,
590
591
Env : env ,
591
592
VolumeMounts : mounts ,
593
+ SecurityContext : ctrPrivSecurityContext (),
592
594
}
593
595
}
594
596
@@ -621,6 +623,7 @@ func buildEnsureShareCtr(
621
623
Args : planner .Args ().EnsureSharePaths (),
622
624
Env : env ,
623
625
VolumeMounts : mounts ,
626
+ SecurityContext : ctrPrivSecurityContext (),
624
627
}
625
628
}
626
629
@@ -838,3 +841,10 @@ func imagePullPolicy(pl *pln.Planner) corev1.PullPolicy {
838
841
}
839
842
return pullPolicy
840
843
}
844
+
845
+ func ctrPrivSecurityContext () * corev1.SecurityContext {
846
+ return & corev1.SecurityContext {
847
+ Privileged : & []bool {true }[0 ],
848
+ RunAsNonRoot : & []bool {false }[0 ],
849
+ }
850
+ }
You can’t perform that action at this time.
0 commit comments