From: Sylvain Desbureaux Date: Tue, 25 Aug 2020 11:53:34 +0000 (+0000) Subject: Merge "Unable to boot SNDC pod without AAF" X-Git-Tag: 7.0.0~295 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=21f3f47c66a0c0dfa618f9e10872bb97139a7f8d;hp=2c34efdabe85eb4a1787b8561aad7211d3460e38;p=oom.git Merge "Unable to boot SNDC pod without AAF" --- diff --git a/kubernetes/sdnc/templates/statefulset.yaml b/kubernetes/sdnc/templates/statefulset.yaml index 437cb31a8e..d9780d4825 100644 --- a/kubernetes/sdnc/templates/statefulset.yaml +++ b/kubernetes/sdnc/templates/statefulset.yaml @@ -99,7 +99,14 @@ spec: - name: {{ include "common.name" . }}-chown image: "busybox" - command: ["sh", "-c", "chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.persistence.mdsalPath }} ; chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.certInitializer.credsPath }}"] + command: + - sh + args: + - -c + - chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.persistence.mdsalPath }} +{{- if .Values.global.aafEnabled }} + - chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.certInitializer.credsPath }} +{{- end }} volumeMounts: {{ include "common.certInitializer.volumeMount" . | indent 10 }} - mountPath: {{ .Values.persistence.mdsalPath }}