diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-08-25 11:53:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-08-25 11:53:34 +0000 |
commit | 21f3f47c66a0c0dfa618f9e10872bb97139a7f8d (patch) | |
tree | 3c635f91d58fc99c8b9ace3c759f0ad242a01759 /kubernetes/sdnc/templates/statefulset.yaml | |
parent | 2c34efdabe85eb4a1787b8561aad7211d3460e38 (diff) | |
parent | 5c63e9391b5f5f4449756d9f6c444dd236448beb (diff) |
Merge "Unable to boot SNDC pod without AAF"
Diffstat (limited to 'kubernetes/sdnc/templates/statefulset.yaml')
-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 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 }} |