diff --git a/contrib/charts/dragonfly/ci/passwordsecret-values.yaml b/contrib/charts/dragonfly/ci/passwordsecret-values.yaml new file mode 100644 index 000000000000..dd089eda3230 --- /dev/null +++ b/contrib/charts/dragonfly/ci/passwordsecret-values.yaml @@ -0,0 +1,5 @@ +passwordFromSecret: + enable: true + existingSecret: + name: "aaa" + key: "ccc" diff --git a/contrib/charts/dragonfly/templates/_pod.tpl b/contrib/charts/dragonfly/templates/_pod.tpl index dedb996c90a5..2a659c418c1f 100644 --- a/contrib/charts/dragonfly/templates/_pod.tpl +++ b/contrib/charts/dragonfly/templates/_pod.tpl @@ -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" }} diff --git a/contrib/charts/dragonfly/values.yaml b/contrib/charts/dragonfly/values.yaml index 986d85ba8f58..e039be1b5df8 100644 --- a/contrib/charts/dragonfly/values.yaml +++ b/contrib/charts/dragonfly/values.yaml @@ -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: