Skip to content

Conversation

@Gerrit-K
Copy link
Contributor

@Gerrit-K Gerrit-K commented Jan 2, 2025

When using helm charts, it is recommended to use release-specific names in resources, e.g. via {{ .Release.Name }}- prefix. If the persistence config secret is created along this release, it would be beneficial to allow using the templated name, e.g.

persistenceConfigSecret: {{ .Release.Name }}-persistence-config

instead of having to hardcode it like

persistenceConfigSecret: myrelease-persistence-config

This MR simply uses the tpl directive to evaluate any template expressions in the value.

@MonkeyCanCode
Copy link
Contributor

Looks good to me. Please update the helm test cases to reflect this.

@Gerrit-K Gerrit-K force-pushed the helm-tpl-persistence-secret branch from 87be463 to 194917c Compare January 2, 2025 15:07
@Gerrit-K
Copy link
Contributor Author

Gerrit-K commented Jan 2, 2025

Looks good to me. Please update the helm test cases to reflect this.

Thanks, good point! Added a test case for both, the deployment and the job

Edit: I noticed the test failures and pushed another commit. They should be fixed now.

@Gerrit-K Gerrit-K force-pushed the helm-tpl-persistence-secret branch from 194917c to 37f4c22 Compare January 3, 2025 08:23
@Gerrit-K Gerrit-K force-pushed the helm-tpl-persistence-secret branch from 37f4c22 to cb8a4c4 Compare January 3, 2025 08:26
@adutra adutra merged commit 0f5850c into apache:main Jan 3, 2025
5 checks passed
@Gerrit-K Gerrit-K deleted the helm-tpl-persistence-secret branch January 3, 2025 14:08
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.

3 participants