AAF non-root
[aaf/authz.git] / auth / helm / aaf-hello / templates / aaf-hello.yaml
index 3ff9a57..a79f39e 100644 (file)
@@ -56,6 +56,18 @@ spec:
           persistentVolumeClaim:
             claimName: aaf-hello-pvc
       initContainers:
+        - command:
+            - /bin/sh
+            - -c
+            - |
+              chmod -R 775 /opt/app/osaaf
+              chown -R 1000:1000 /opt/app/osaaf
+          image: busybox:1.28
+          imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+          name: init-sysctl
+          volumeMounts:
+            - mountPath: /opt/app/osaaf
+              name: aaf-hello-vol
         - name: aaf-hello-config
           image: "{{ .Values.image.repository }}{{ .Values.service.agentImage }}"
           imagePullPolicy: IfNotPresent