You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/samples/declarative.groovy
+3
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,9 @@ spec:
21
21
- sleep
22
22
args:
23
23
- infinity
24
+
securityContext:
25
+
# ubuntu runs as root by default, it is recommended or even mandatory in some environments (such as pod security admission "restricted") to run as a non-root user.
Copy file name to clipboardExpand all lines: src/main/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/samples/maven.groovy
+8-5
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,9 @@ spec:
13
13
- sleep
14
14
args:
15
15
- infinity
16
+
securityContext:
17
+
# maven runs as root by default, it is recommended or even mandatory in some environments (such as pod security admission "restricted") to run as a non-root user.
0 commit comments