Skip to content

Commit 0160f05

Browse files
Added initcontainer to chown permissions
1 parent 7470f6c commit 0160f05

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

manifests/yamls/gitsensor.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,22 @@ spec:
5858
runAsGroup: 1000
5959
runAsUser: 1000
6060
containers:
61+
initContainers:
62+
- command:
63+
- /bin/sh
64+
- -c
65+
- chown -R devtron:devtron /git-base
66+
image: "quay.io/devtron/git-sensor:e5e66474-200-13261"
67+
imagePullPolicy: IfNotPresent
68+
name: chown-git-base
69+
resources: {}
70+
securityContext:
71+
runAsUser: 0
72+
terminationMessagePath: /dev/termination-log
73+
terminationMessagePolicy: File
74+
volumeMounts:
75+
- mountPath: /git-base/
76+
name: git-volume
6177
- name: git-sensor
6278
image: "quay.io/devtron/git-sensor:e5e66474-200-13261"
6379
securityContext:

0 commit comments

Comments
 (0)