Merge "[MODELING]Modify the owner of static directory to onap instead of root"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 15 Jul 2020 06:58:35 +0000 (06:58 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 15 Jul 2020 06:58:35 +0000 (06:58 +0000)
kubernetes/modeling/charts/modeling-etsicatalog/templates/deployment.yaml
kubernetes/modeling/charts/modeling-etsicatalog/values.yaml

index f294abf..0c1ba30 100644 (file)
@@ -47,6 +47,16 @@ spec:
         image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
         name: {{ include "common.name" . }}-readiness
+      - command:
+        - /bin/sh
+        - -c
+        - chown -R 1000:1000 /service/modeling/etsicatalog/static
+        image: "{{ include "common.repository" . }}/{{ .Values.initImage }}"
+        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+        name: {{ include "common.name" . }}-init
+        volumeMounts:
+        - name: {{ include "common.fullname" . }}-etsicatalog
+          mountPath: /service/modeling/etsicatalog/static
       containers:
         - name: {{ include "common.name" . }}
           command:
index 30ca493..0174795 100644 (file)
@@ -63,6 +63,7 @@ flavor: small
 
 repository: nexus3.onap.org:10001
 image: onap/modeling/etsicatalog:1.0.6
+initImage: busybox:latest
 pullPolicy: Always
 
 #Istio sidecar injection policy