summaryrefslogtreecommitdiffstats
path: root/kubernetes/cds/charts/cds-blueprints-processor
diff options
context:
space:
mode:
authorjananib <janani.b@huawei.com>2020-04-23 19:33:45 +0530
committerjananib <janani.b@huawei.com>2020-04-23 19:33:45 +0530
commitb38185a167552adefcdd2a32e517e912e01dd683 (patch)
treeecacce7f1efb02694618924067b627c7850fc88b /kubernetes/cds/charts/cds-blueprints-processor
parentfbabf1304f1eae3c9c9868a6e033758820ae326c (diff)
Making mounted volume non-root
CDS non-root user addition Change-Id: I16a3c9b7de1ff74e4c6b208d49ab25664e580fbb Issue-ID: OOM-2386 Signed-off-by: jananib <janani.b@huawei.com>
Diffstat (limited to 'kubernetes/cds/charts/cds-blueprints-processor')
-rwxr-xr-xkubernetes/cds/charts/cds-blueprints-processor/templates/deployment.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/kubernetes/cds/charts/cds-blueprints-processor/templates/deployment.yaml b/kubernetes/cds/charts/cds-blueprints-processor/templates/deployment.yaml
index ab7245e56a..ac0e9c5f80 100755
--- a/kubernetes/cds/charts/cds-blueprints-processor/templates/deployment.yaml
+++ b/kubernetes/cds/charts/cds-blueprints-processor/templates/deployment.yaml
@@ -85,6 +85,17 @@ spec:
image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
name: {{ include "common.name" . }}-readiness
+ - name: fix-permission
+ command:
+ - chown
+ - -R
+ - 100:101
+ - /opt/app/onap/blueprints/deploy
+ image: busybox:latest
+ imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ volumeMounts:
+ - mountPath: {{ .Values.persistence.deployedBlueprint }}
+ name: {{ include "common.fullname" . }}-blueprints
containers:
- name: {{ include "common.name" . }}
image: "{{ include "common.repository" . }}/{{ .Values.image }}"