fix init security context

This commit is contained in:
2024-05-30 16:07:38 -04:00
parent 2c2fcf7042
commit 370d2c9eee

View File

@@ -23,6 +23,9 @@ spec:
- name: fix-ownership - name: fix-ownership
image: busybox image: busybox
command: ["chown", "-R", "1000:1000", "/opt/onedev"] command: ["chown", "-R", "1000:1000", "/opt/onedev"]
securityContext:
runAsUser: 0
runAsGroup: 0
volumeMounts: volumeMounts:
- name: data - name: data
mountPath: /opt/onedev mountPath: /opt/onedev