[SIS-xxx] changing db secrets to be created before installation

This commit is contained in:
Sheldan
2023-08-30 00:49:03 +02:00
parent b3029deea4
commit fd402a966a
4 changed files with 9 additions and 6 deletions

View File

@@ -2,6 +2,9 @@ apiVersion: v1
kind: Secret
metadata:
name: db-credentials
annotations:
"helm.sh/hook": pre-upgrade,pre-install
"helm.sh/hook-weight": "-4"
data:
dbPassword: {{ $.Values.dbCredentials.password | b64enc }} # b64enc is needed, because a stringData secret field cannot hold numeric values
dbUser: {{ $.Values.dbCredentials.userName | b64enc }}