diff options
author | dengyh <dengyuanhong@chinamobile.com> | 2020-07-13 14:30:34 +0800 |
---|---|---|
committer | Yuanhong Deng <dengyuanhong@chinamobile.com> | 2020-07-15 01:02:10 +0000 |
commit | b10568250ec08e0e1aac46d00d0a401513e787ff (patch) | |
tree | 3f2df179e4740dfb176e70587be00eedf5d8fcea /kubernetes/modeling/charts/modeling-etsicatalog/templates | |
parent | 85ba9615ed6d06f6cb86dbe5a076a76103e70990 (diff) |
[MODELING]Modify the owner of static directory to onap instead of root
Issue-ID: MODELING-390
Change-Id: I0ee220f9a86765af7c1b7b1292a338ba13ae8988
Signed-off-by: dengyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'kubernetes/modeling/charts/modeling-etsicatalog/templates')
-rw-r--r-- | kubernetes/modeling/charts/modeling-etsicatalog/templates/deployment.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kubernetes/modeling/charts/modeling-etsicatalog/templates/deployment.yaml b/kubernetes/modeling/charts/modeling-etsicatalog/templates/deployment.yaml index f294abf14e..0c1ba300bb 100644 --- a/kubernetes/modeling/charts/modeling-etsicatalog/templates/deployment.yaml +++ b/kubernetes/modeling/charts/modeling-etsicatalog/templates/deployment.yaml @@ -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: |