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 "optional" option to gcpsecrets provider #99

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

koenpunt
Copy link
Contributor

@koenpunt koenpunt commented Sep 5, 2022

Alternate approach for the problem described in #98


We're using this with Helm and dynamic secret keys (e.g. app__{{ .Environment.Name }}__DB_PASSWORD, and in some environments we want a fixed value, or we want the value to empty. The fixed value could be solved by adding a secret with that fixed value, but an empty value is not allowed in GCP.

By making a value optional we can safely ignore errors.

@koenpunt koenpunt force-pushed the gcpsecrets-optional branch from 9c1a24f to 278e1d1 Compare September 5, 2022 14:55
Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

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

LGTM! To me, optional looks more intuitive than fallback or fallback_value with an empty value. Let's have both in.
Thank you for your contribution!

@mumoshu mumoshu merged commit a3278cb into helmfile:main Nov 29, 2022
@koenpunt koenpunt deleted the gcpsecrets-optional branch November 29, 2022 09:13
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