jenkins: run jcasc cleanup initcontainer as jenkins user
This commit is contained in:
parent
1f98a5be12
commit
4e479147ec
@ -90,7 +90,8 @@ spec:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
rm -f /var/jenkins_home/casc_configs/*.yaml || true
|
rm -f /var/jenkins_home/casc_configs/*.yaml || true
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: jenkins-home
|
- name: jenkins-home
|
||||||
mountPath: /var/jenkins_home
|
mountPath: /var/jenkins_home
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user