Skip to content

Support tpl rendering in volumes, volumeMounts and pgbouncer.configSecretName#67958

Open
thejoeejoee wants to merge 2 commits into
apache:mainfrom
thejoeejoee:feat/helm-tpl-volumes-volumemounts-pgbouncer
Open

Support tpl rendering in volumes, volumeMounts and pgbouncer.configSecretName#67958
thejoeejoee wants to merge 2 commits into
apache:mainfrom
thejoeejoee:feat/helm-tpl-volumes-volumemounts-pgbouncer

Conversation

@thejoeejoee
Copy link
Copy Markdown
Contributor

Wrap .Values.volumes and .Values.volumeMounts in tpl() across all chart templates and the pod-template-file, allowing users to use Go template expressions in global volume definitions.

Also wrap pgbouncer.configSecretName in tpl() with a nil-guard in the pgbouncer_config_secret helper.

closes: #67951


Was generative AI tooling used to co-author this PR?
  • Yes — Opencode (Opus 4.6)

Generated-by: Opencode (Opus 4.6) following the guidelines

…cretName

Wrap .Values.volumes and .Values.volumeMounts in tpl() across all
chart templates and the pod-template-file, allowing users to use
Go template expressions in global volume definitions.

Also wrap pgbouncer.configSecretName in tpl() with a nil-guard in
the pgbouncer_config_secret helper.

closes: apache#67951
Copy link
Copy Markdown
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

Can you please add some documentation as well, not only code?

Also in the values.yaml and values-schema it would be very good to mark the properties which are now templated (like e.g. in https://github.com/apache/airflow/blob/main/chart/values.yaml#L648)

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

Labels

area:helm-chart Airflow Helm Chart

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chart: Add tpl support to .Values.volumes, .Values.volumeMounts, and pgbouncer.configSecretName

2 participants