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

allow datastore secret name to be specified #363

Closed
wants to merge 1 commit into from

Conversation

guzzijones
Copy link
Contributor

@guzzijones guzzijones commented Mar 8, 2023

allow a datastore secret name to be specified. If one is specified do not dynamically generate a new datastore secret.
If I uninstall and reinstall this helm chart a new secret is generated.
Sometimes a helm upgrade isn't enough. In that case I do an uninstall and reinstall. This seems to be the case for ingress changes.

@CLAassistant
Copy link

CLAassistant commented Mar 8, 2023

CLA assistant check
All committers have signed the CLA.

@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines. Good size to review. label Mar 8, 2023
@guzzijones guzzijones force-pushed the datastore branch 2 times, most recently from 79f06eb to 1375c7d Compare March 8, 2023 16:11
fix false being cast to boolean

fix var assignment
@guzzijones guzzijones changed the title wip datastore secret name allow datastore secret name to be specified Mar 8, 2023
@guzzijones
Copy link
Contributor Author

Any thoughts on this?

Copy link
Member

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

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

I think we're going to need to do something like this for many of our secrets.

What about adding a helper that returns the name of the secret to use? That can handle returning the custom secret name if provided, or else the default name. Use that helper in the be deployments and jobs.

Then, in the secret file, wrap the whole resource in an if block. If there is a custom resource name, do not create the chart-managed secret.

@cognifloyd
Copy link
Member

Something like #359 would be great for the datastore secret.

@guzzijones
Copy link
Contributor Author

I am going to start on this with the changes you requested.

@guzzijones guzzijones closed this May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M PR that changes 30-99 lines. Good size to review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants