diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-11-24 16:25:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-11-24 16:25:10 +0000 |
commit | b56c44927a339866cb2a84b6841fa5c691405878 (patch) | |
tree | 884bd1b6cd66e921d7d0a781c12cd79b34a13d49 /kubernetes/sdc | |
parent | 32d44e977649f3a4085a565adfbede964a029657 (diff) | |
parent | 79b1d201a2027c5fc6deb441cf8d2999318083a1 (diff) |
Merge "[SDC] Bring back sdc onboarding volume mount permissions" into guilin
Diffstat (limited to 'kubernetes/sdc')
-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 }}" |