aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-07-15 06:58:35 +0000
committerGerrit Code Review <gerrit@onap.org>2020-07-15 06:58:35 +0000
commit3fa21c6d5531d387849afa55cd0fbd890f9edb6b (patch)
tree2f3b6afc48ebd2ca2872c6e32ac3b4ece16c78c1 /kubernetes
parent2b6bb21042298923635025ae5a98d1a76077aca5 (diff)
parentb10568250ec08e0e1aac46d00d0a401513e787ff (diff)
Merge "[MODELING]Modify the owner of static directory to onap instead of root"
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/modeling/charts/modeling-etsicatalog/templates/deployment.yaml10
-rw-r--r--kubernetes/modeling/charts/modeling-etsicatalog/values.yaml1
2 files changed, 11 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:
diff --git a/kubernetes/modeling/charts/modeling-etsicatalog/values.yaml b/kubernetes/modeling/charts/modeling-etsicatalog/values.yaml
index 30ca493775..01747957e3 100644
--- a/kubernetes/modeling/charts/modeling-etsicatalog/values.yaml
+++ b/kubernetes/modeling/charts/modeling-etsicatalog/values.yaml
@@ -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