summaryrefslogtreecommitdiffstats
path: root/kubernetes/so/charts/so-mariadb/templates/secrets.yaml
diff options
context:
space:
mode:
authorMike Elliott <mike.elliott@amdocs.com>2019-04-23 20:52:38 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-23 20:52:38 +0000
commit9591933faf7b9b60258c81ca01649d231a979506 (patch)
tree08aad43e8eac796869d6d65a5a453c4cf14040b5 /kubernetes/so/charts/so-mariadb/templates/secrets.yaml
parent08296edb0fdaf5688b5560ebf3dc6b05d992f6a9 (diff)
parent72b69c1313f4545ed9e431e0ccdefbbbe3dfc86b (diff)
Merge "SO Rolling upgrade using helm hooks"
Diffstat (limited to 'kubernetes/so/charts/so-mariadb/templates/secrets.yaml')
-rwxr-xr-xkubernetes/so/charts/so-mariadb/templates/secrets.yaml22
1 files changed, 21 insertions, 1 deletions
diff --git a/kubernetes/so/charts/so-mariadb/templates/secrets.yaml b/kubernetes/so/charts/so-mariadb/templates/secrets.yaml
index 24f7139ee0..99ccb55445 100755
--- a/kubernetes/so/charts/so-mariadb/templates/secrets.yaml
+++ b/kubernetes/so/charts/so-mariadb/templates/secrets.yaml
@@ -23,4 +23,24 @@ metadata:
heritage: {{ .Release.Service }}
type: Opaque
data:
- db-root-password: {{ .Values.config.mariadbRootPassword | b64enc | quote }} \ No newline at end of file
+ db-root-password: {{ .Values.global.mariadbGalera.mariadbRootPassword | b64enc | quote }}
+{{- if .Values.global.migration.enabled }}
+---
+apiVersion: v1
+kind: Secret
+metadata:
+ name: {{ include "common.fullname" . }}-migration
+ namespace: {{ include "common.namespace" . }}
+ labels:
+ app: {{ include "common.name" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+ annotations:
+ "helm.sh/hook": pre-upgrade,pre-install
+ "helm.sh/hook-weight": "0"
+ "helm.sh/hook-delete-policy": before-hook-creation
+type: Opaque
+data:
+ db-root-password-backup: {{ .Values.global.migration.dbPassword | b64enc | quote }}
+{{- end }}