From 370d2c9eee298439554a1902857d373260fd07bc Mon Sep 17 00:00:00 2001 From: Michael Thomson Date: Thu, 30 May 2024 16:07:38 -0400 Subject: [PATCH] fix init security context --- onedev/helmrelease-onedev.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/onedev/helmrelease-onedev.yaml b/onedev/helmrelease-onedev.yaml index 72b93b4..697ad26 100644 --- a/onedev/helmrelease-onedev.yaml +++ b/onedev/helmrelease-onedev.yaml @@ -23,11 +23,14 @@ spec: - name: fix-ownership image: busybox command: ["chown", "-R", "1000:1000", "/opt/onedev"] + securityContext: + runAsUser: 0 + runAsGroup: 0 volumeMounts: - - name: data - mountPath: /opt/onedev - - name: trust-certs - mountPath: /opt/onedev/conf/trust-certs + - name: data + mountPath: /opt/onedev + - name: trust-certs + mountPath: /opt/onedev/conf/trust-certs # Configure Ingress resource ingress: enabled: true