-
Notifications
You must be signed in to change notification settings - Fork 998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(charts): Update helm chart to support password from secret #799
Conversation
Signed-off-by: ashotland <[email protected]>
Elaborate test Signed-off-by: ashotland <[email protected]>
Using recently added capability of setting dragonfly passowrd with the DFLY_PASSWORD environment variable Signed-off-by: ashotland <[email protected]>
Hi @tamcore - first helm change for me, so I hope this makes sense. |
Hi @ashotland, generally, seems ok :) But, for something like that, usually the term you'd be looking for is So I'd make the following proposal:
But I'm gonna leave that up to you :) |
Thanks @tamcore for the comments. I'll apply the suggested rename and followup with secret creation in a later PR. |
10a9492
to
ed28177
Compare
I suggest adding extraObjects:
- apiVersion: v1
kind: Secret
metadata:
name: dfly-password
stringData:
password: foobar to |
62af8a1
to
262ec59
Compare
Signed-off-by: ashotland <[email protected]>
Signed-off-by: ashotland <[email protected]>
Thanks @tamcore :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
If you'd want, you could now be lazy and just make it
{{- with .Values.passwordFromSecret.existingSecret }}
- name: DFLY_PASSWORD
valueFrom:
secretKeyRef:
{{- toYaml . | nindent 12 }}
{{- end }}
and default passwordFromSecret
to {}
while having name
and key
commented out. Then the enabled
flag wouldn't even be needed. But there's no true right or wrong :)
Using next release added capability of setting dragonfly password with the
DFLY_PASSWORD environment variable