Skip to content

Commit eb8099f

Browse files
authored
feat(helm): Don't create Secret if existingSecret is provided (#6397)
1 parent 56d3548 commit eb8099f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ci/helm-chart/templates/secrets.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.existingSecret }}
12
apiVersion: v1
23
kind: Secret
34
metadata:
@@ -11,8 +12,9 @@ metadata:
1112
app.kubernetes.io/managed-by: {{ .Release.Service }}
1213
type: Opaque
1314
data:
14-
{{ if .Values.password }}
15+
{{- if .Values.password }}
1516
password: "{{ .Values.password | b64enc }}"
16-
{{ else }}
17+
{{- else }}
1718
password: "{{ randAlphaNum 24 | b64enc }}"
18-
{{ end }}
19+
{{- end }}
20+
{{- end }}

0 commit comments

Comments
 (0)