diff options
author | Lucjan Bryndza <l.bryndza@samsung.com> | 2020-06-25 08:43:23 +0000 |
---|---|---|
committer | Lucjan Bryndza <l.bryndza@samsung.com> | 2020-08-12 15:31:13 +0000 |
commit | 5c63e9391b5f5f4449756d9f6c444dd236448beb (patch) | |
tree | 7ef9494be2c609889b98da0cf7adeee890a25e39 /kubernetes | |
parent | c7b1cb5f8f4f06a5d93eab188f564484fa7a8549 (diff) |
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 <l.bryndza@samsung.com>
Diffstat (limited to 'kubernetes')
-rw-r--r-- | kubernetes/sdnc/templates/statefulset.yaml | 9 |
1 files changed, 8 insertions, 1 deletions
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 }} |