diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-11-15 16:19:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-11-15 16:19:43 +0000 |
commit | 4eb609904c7882b95ff1122b911bbe42feaaee21 (patch) | |
tree | 2e35208da01c11d8ff239b6514bd98eba2172c03 | |
parent | ef30ef97fef8338720e3431b73a7b0e3e4cca575 (diff) | |
parent | aa803d02685993474bbd1cc3dc8cbe4ae800806b (diff) |
Merge "[SDNC] Fix dependencies for SDNRONLY mode"
-rw-r--r-- | kubernetes/sdnc/templates/statefulset.yaml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kubernetes/sdnc/templates/statefulset.yaml b/kubernetes/sdnc/templates/statefulset.yaml index 06b864961f..fc584d8e25 100644 --- a/kubernetes/sdnc/templates/statefulset.yaml +++ b/kubernetes/sdnc/templates/statefulset.yaml @@ -130,11 +130,11 @@ spec: image: {{ include "repositoryGenerator.image.envsubst" . }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} name: {{ include "common.name" . }}-update-config - {{ if .Values.dgbuilder.enabled -}} + {{ if or .Values.dgbuilder.enabled .Values.config.sdnr.enabled -}} - command: - /app/ready.py args: - {{ if or .Values.dgbuilder.enabled .Values.config.sdnr.enabled -}} + {{ if .Values.dgbuilder.enabled -}} - --container-name - {{ include "common.mariadbService" . }} - --job-name @@ -200,8 +200,10 @@ spec: initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} env: + {{ if and .Values.config.sdnr.enabled .Values.config.sdnr.sdnronly -}} - name: MYSQL_ROOT_PASSWORD {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-root-password" "key" "password") | indent 12 }} + {{ end -}} - name: ODL_ADMIN_USERNAME {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "odl-creds" "key" "login") | indent 12 }} - name: ODL_USER |