Skip to content

Commit

Permalink
fix: avoid setting configmap name with config.secret=true
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Scorsolini <[email protected]>
  • Loading branch information
phisco committed Oct 30, 2023
1 parent 0ecada9 commit 4376070
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions charts/cloudnative-pg/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ spec:
- args:
- controller
- --leader-elect
{{- with .Values.config.name }}
- --config-map-name={{ . }}
- --secret-name={{ . }}
{{- if .Values.config.name }}
{{- if not .Values.config.secret }}
- --config-map-name={{ .Values.config.name }}
{{- else }}
- --secret-name={{ .Values.config.name }}
{{- end }}
{{- end }}
- --webhook-port={{ .Values.webhook.port }}
{{- range .Values.additionalArgs }}
Expand Down

0 comments on commit 4376070

Please sign in to comment.