diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2018-07-01 14:02:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-07-01 14:02:45 +0000 |
commit | a99cc2c0fa3460e5c20f21a8493df1990c419736 (patch) | |
tree | 064d871ae0e249c4f43f86056241a94d001d044f /kubernetes/sdnc/templates | |
parent | 5938a95eeae4faa222c09654381079955923ebef (diff) | |
parent | 70863e11b3d0816ad7b8f938fe60eb293b2748db (diff) |
Merge "make sdnctl user db password configurable for SDNC"
Diffstat (limited to 'kubernetes/sdnc/templates')
-rw-r--r-- | kubernetes/sdnc/templates/secrets.yaml | 14 | ||||
-rw-r--r-- | kubernetes/sdnc/templates/statefulset.yaml | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/kubernetes/sdnc/templates/secrets.yaml b/kubernetes/sdnc/templates/secrets.yaml index 754f117e38..a900132c31 100644 --- a/kubernetes/sdnc/templates/secrets.yaml +++ b/kubernetes/sdnc/templates/secrets.yaml @@ -25,3 +25,17 @@ metadata: type: Opaque data: odl-password: {{ .Values.config.odlPassword | b64enc | quote }} +--- +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "common.fullname" . }}-sdnctl + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.fullname" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +type: Opaque +data: + db-sdnctl-password: {{ .Values.config.dbSdnctlPassword | b64enc | quote }} diff --git a/kubernetes/sdnc/templates/statefulset.yaml b/kubernetes/sdnc/templates/statefulset.yaml index 69816dffb4..03ae8800bd 100644 --- a/kubernetes/sdnc/templates/statefulset.yaml +++ b/kubernetes/sdnc/templates/statefulset.yaml @@ -74,6 +74,11 @@ spec: secretKeyRef: name: {{ template "common.fullname" . }}-odl key: odl-password + - name: SDNC_DB_PASSWORD + valueFrom: + secretKeyRef: + name: {{ template "common.fullname" . }}-sdnctl + key: db-sdnctl-password - name: SDNC_CONFIG_DIR value: "{{ .Values.config.configDir }}" - name: ENABLE_ODL_CLUSTER |