Skip to content

Commit

Permalink
fix: use password from preexisting secret (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rg4sh authored Mar 6, 2024
1 parent ae5cf6a commit be87f99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/nautobot/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{- .Values.nautobot.db.existingSecretPasswordKey -}}
{{- else if eq .Values.postgresql.enabled true -}}
{{- if .Values.postgresql.auth.existingSecret -}}
{{- default "password" .Values.postgresql.auth.secretsKeys.adminPasswordKey -}}
{{- default "password" .Values.postgresql.auth.secretKeys.userPasswordKey -}}
{{- else -}}
{{- printf "password" -}}
{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion charts/nautobot/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: Opaque
data:
{{- include "nautobot.secret.env" . | nindent 2 }}

{{- if not .Values.nautobot.db.existingSecret }}
{{- if not ( or .Values.nautobot.db.existingSecret .Values.postgresql.auth.existingSecret .Values.mariadb.auth.existingSecret ) }}
---
apiVersion: v1
kind: Secret
Expand Down

0 comments on commit be87f99

Please sign in to comment.