Merge "[CCSDK/CDS] Bump CDS version for final Guilin release" into guilin
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 25 Nov 2020 07:49:54 +0000 (07:49 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 25 Nov 2020 07:49:54 +0000 (07:49 +0000)
kubernetes/sdc/components/sdc-onboarding-be/templates/deployment.yaml

index 74757c7..9d14dfe 100644 (file)
@@ -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 }}"