Skip to content

Commit

Permalink
rename to existingSecret* + CI file
Browse files Browse the repository at this point in the history
Signed-off-by: ashotland <[email protected]>
  • Loading branch information
ashotland committed Feb 16, 2023
1 parent b53b3fd commit ed28177
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions contrib/charts/dragonfly/ci/passwordsecret-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
passwordFromSecret:
enable: true
existingSecret:
name: "aaa"
key: "ccc"
4 changes: 2 additions & 2 deletions contrib/charts/dragonfly/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ containers:
- name: DFLY_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.passwordFromSecret.secretName }}
key: {{ .Values.passwordFromSecret.secretKey }}
name: {{ .Values.passwordFromSecret.existingSecret.name }}
key: {{ .Values.passwordFromSecret.existingSecret.key }}
{{- end }}
{{- with .Values.extraContainers }}
{{- if eq (typeOf .) "string" }}
Expand Down
8 changes: 5 additions & 3 deletions contrib/charts/dragonfly/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,13 @@ tls:
# HLunol88AeTOcKfD6hBYGvcRfu5NV29jJxZCOBfbFQXjnNlnrhRCag==
# -----END RSA PRIVATE KEY-----

# If enabled will set DFLY_PASSOWRD environment variable with the specified secret value
# If enabled will set DFLY_PASSOWRD environment variable with the specified existing secret value
# Nothe that if enabled and the secret does not exist pods will not start
passwordFromSecret:
enable: false
secretName: ""
secretKey: ""
existingSecret:
name: ""
key: ""


probes:
Expand Down

0 comments on commit ed28177

Please sign in to comment.