diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-11-23 12:10:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-11-23 12:10:37 +0000 |
commit | f0dacd23777a7998915afe00150b25135b932f86 (patch) | |
tree | 68c3df8432290766445a51881a3ec462c40cfa1e | |
parent | 220a1d3986f5f42b136548bd139cf089060d5825 (diff) | |
parent | 868a2802eaebcb7f0ddeadfa855020ca2ce121f2 (diff) |
Merge "[SDC] Bring back sdc onboarding volume mount permissions"
-rw-r--r-- | kubernetes/sdc/components/sdc-onboarding-be/templates/deployment.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/kubernetes/sdc/components/sdc-onboarding-be/templates/deployment.yaml b/kubernetes/sdc/components/sdc-onboarding-be/templates/deployment.yaml index 74757c7be2..9d14dfe5b5 100644 --- a/kubernetes/sdc/components/sdc-onboarding-be/templates/deployment.yaml +++ b/kubernetes/sdc/components/sdc-onboarding-be/templates/deployment.yaml @@ -92,6 +92,27 @@ spec: cpu: 3m memory: 20Mi {{- end }} + - name: volume-permissions + image: {{ .Values.global.busyboxRepository | default .Values.busyboxRepository }}/{{ .Values.global.busyboxImage | default .Values.busyboxImage }} + imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + command: + - sh + args: + - "-c" + - | + chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }} //onboard/cert + securityContext: + runAsUser: 0 + volumeMounts: + - name: {{ include "common.fullname" . }}-cert-storage + mountPath: "/onboard/cert" + resources: + limits: + cpu: 100m + memory: 100Mi + requests: + cpu: 3m + memory: 20Mi containers: - name: {{ include "common.name" . }} image: "{{ include "common.repository" . }}/{{ .Values.image }}" |