[MODELING]Modify the owner of static directory to onap instead of root 16/110116/6
authordengyh <dengyuanhong@chinamobile.com>
Mon, 13 Jul 2020 06:30:34 +0000 (14:30 +0800)
committerYuanhong Deng <dengyuanhong@chinamobile.com>
Wed, 15 Jul 2020 01:02:10 +0000 (01:02 +0000)
Issue-ID: MODELING-390
Change-Id: I0ee220f9a86765af7c1b7b1292a338ba13ae8988
Signed-off-by: dengyh <dengyuanhong@chinamobile.com>
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