Skip to content

Conversation

@chrisseto
Copy link
Contributor

Previously it wasn't possible to use podTemplate to override the VolumeSource. Helm prevented explicitly null'ing out values due to the chart's schema and the go implementation has no concept of explicit nulls.

This commit copies the precedent set in mergeEnvVar and simply elects the override if provided.

Additionally this commit adds a test case showcasing how to use podTemplate to generate certificates from an initContainer.

K8S-683

Previously it wasn't possible to use `podTemplate` to override the
`VolumeSource`. Helm prevented explicitly null'ing out values due to the
chart's schema and the go implementation has no concept of explicit nulls.

This commit copies the precedent set in `mergeEnvVar` and simply elects the
override if provided.

Additionally this commit adds a test case showcasing how to use `podTemplate`
to generate certificates from an initContainer.

K8S-683
@chrisseto chrisseto force-pushed the chris/p/redpanda-volume-overrides branch from 8226d2a to 08c55a9 Compare September 8, 2025 21:24
@david-yu
Copy link
Contributor

david-yu commented Sep 9, 2025

Does this close out this issue? redpanda-data/helm-charts#835

@chrisseto
Copy link
Contributor Author

Does this close out this issue? redpanda-data/helm-charts#835

I don't believe so. This corrects some behavior when using certain podTemplate overrides and isn't really related to mTLS.

Though #1071 might actually address that issue. There will still be some edges around how you enable mTLS but it should make the simple case work.

@chrisseto chrisseto merged commit 1f5dfc9 into main Sep 9, 2025
14 checks passed
@chrisseto chrisseto deleted the chris/p/redpanda-volume-overrides branch September 9, 2025 19:18
@github-actions
Copy link

github-actions bot commented Sep 9, 2025

💚 All backports created successfully

Status Branch Result
release/v2.4.x
release/v25.1.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants