Skip to content

Commit

Permalink
Dont try and set database.root.password if it is omitted #43
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Mcgimpsey committed Apr 26, 2021
1 parent 13d4b27 commit 4d92767
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
secretKeyRef:
name: {{ include "fusionauth.database.secretName" . }}
key: password
{{- if eq .Values.database.isManagedDB false }}
{{- if .Values.database.root.password }}
- name: DATABASE_ROOT_PASSWORD
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ data:
{{- if .Values.database.password }}
password: {{ .Values.database.password | b64enc }}
{{- end }}
{{- if and (.Values.database.root.password) (eq .Values.database.isManagedDB false) }}
{{- if .Values.database.root.password }}
rootpassword: {{ .Values.database.root.password | b64enc }}
{{- end }}
kind: Secret
Expand Down
2 changes: 0 additions & 2 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ database:
tlsMode: require
# database.name -- Name of the fusionauth database
name: fusionauth
# for Managed cloud instances, it is not expected to pass the root credentials of the database.
isManagedDB: false

# To use an existing secret, set `existingSecret` to the name of the secret. We expect two keys: `password` and `rootpassword`
# database.existingSecret -- The name of an existing secret that contains the database passwords
Expand Down

0 comments on commit 4d92767

Please sign in to comment.