summaryrefslogtreecommitdiffstats
path: root/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2019-09-19 06:54:29 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-19 06:54:29 +0000
commitb55649553ce3f1cb68db72330b85d1a77c480fd6 (patch)
tree17580410b8e42514e6aec198d86c5f9b8fafa311 /kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml
parent68e63a8ec4794aa297de5131ff919a330b2f564c (diff)
parentbacdd45c1bf47e5855671351bed2b9c5b22cd48d (diff)
Merge "add PV support for artifactbroker"
Diffstat (limited to 'kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml')
-rw-r--r--kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml b/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml
index e6f1456874..0cb1d733eb 100644
--- a/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml
+++ b/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml
@@ -39,6 +39,14 @@ spec:
annotations:
sidecar.istio.io/inject: "{{.Values.istioSidecar}}"
spec:
+ initContainers:
+ - command: ["sh", "-c", "chown -R 100:101 /data"]
+ image: "{{ .Values.global.ubuntuInitRepository }}/{{ .Values.global.ubuntuInitImage }}"
+ imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ name: {{ include "common.name" . }}-init
+ volumeMounts:
+ - mountPath: /data
+ name: artifact-data
containers:
- env:
- name: MSB_ADDR
@@ -122,7 +130,12 @@ spec:
configMap:
name: {{ include "common.fullname" . }}-log-configmap
- name: artifact-data
+ {{- if .Values.persistence.enabled }}
+ persistentVolumeClaim:
+ claimName: {{ include "common.fullname" . }}
+ {{- else }}
emptyDir: {}
+ {{- end }}
imagePullSecrets:
- name: "{{ include "common.namespace" . }}-docker-registry-key"
restartPolicy: Always