Unable to boot SNDC pod without AAF 39/109539/9
authorLucjan Bryndza <l.bryndza@samsung.com>
Thu, 25 Jun 2020 08:43:23 +0000 (08:43 +0000)
committerLucjan Bryndza <l.bryndza@samsung.com>
Wed, 12 Aug 2020 15:31:13 +0000 (15:31 +0000)
SDNC pod is always in waiting state after
deploy when AAF is disabled.

Change-Id: Ie986889fe53f53d51b8e8a63895c156bf1d6b521
Issue-ID: OOM-2439
Signed-off-by: Lucjan Bryndza <l.bryndza@samsung.com>
kubernetes/sdnc/templates/statefulset.yaml

index a7ca81c..018fd25 100644 (file)
@@ -96,7 +96,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 }}