Skip to content
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

Add option to create a Kubernetes secret containing the databaseUrl #90

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

nickgarlis
Copy link
Contributor

@nickgarlis nickgarlis commented Jan 30, 2025

This PR adds the option to create a Kubernetes secret with the name windmill-database containing the value of windmill.databaseUrl if the option windmill.databaseSecret is true.

If this is of interest and you would require changes then I'd be happy to make them.

@@ -51,7 +51,13 @@ spec:
{{- with .Values.hub.extraEnv }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{ if .Values.hub.databaseUrlSecretName }}
{{ if .Values.hub.databaseSecret }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a user of those values but I assumed that it would also be needed here for consistency

@@ -70,7 +70,13 @@ spec:
- name : "METRICS_ADDR"
value: "true"
{{ end }}
{{ if .Values.windmill.databaseUrlSecretName }}
{{- if and .Values.windmill.createSecret .Values.windmill.databaseUrl -}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to go this way for backwards compatibility reasons and to not enforce the secret creation to those that don't use it.

@nickgarlis nickgarlis force-pushed the add-database-secret-option branch from 875a06f to 23209bb Compare January 30, 2025 15:50
@rubenfiszel rubenfiszel merged commit d317d9d into windmill-labs:main Jan 30, 2025
@rubenfiszel
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants