From 5c63e9391b5f5f4449756d9f6c444dd236448beb Mon Sep 17 00:00:00 2001 From: Lucjan Bryndza Date: Thu, 25 Jun 2020 08:43:23 +0000 Subject: Unable to boot SNDC pod without AAF 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 --- kubernetes/sdnc/templates/statefulset.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'kubernetes') diff --git a/kubernetes/sdnc/templates/statefulset.yaml b/kubernetes/sdnc/templates/statefulset.yaml index a7ca81cd6d..018fd256a9 100644 --- a/kubernetes/sdnc/templates/statefulset.yaml +++ b/kubernetes/sdnc/templates/statefulset.yaml @@ -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 }} -- cgit 1.2.3-korg