[bitnami/thanos] Use `tpl` in ingress templates
Name and Version
bitnami/thanos 12.0.3
What is the problem this feature will solve?
Where ingresses are defined, often the same domain is used for various deployments, only varying in the subdomain. For this, charts such as kube-prometheus-stack and grafana enable the use of the tpl function, so that users can nest .Values in the values.yaml file, such as the following in grafana:
# values.yaml
domain: "example.com"
# Modifying values of grafana subchart dependency
grafana:
ingress:
enabled: true
hosts:
- grafana.{{ .Values.domain }}
This is not really a problem, but rather an improvement for the use of this helm chart as a dependency .
What is the feature you are proposing to solve the problem?
It would be great if this was possible for ingress templates such as query-frontend/ingress.yaml.
What alternatives have you considered?
No response
Hi!
Thank you for the suggestion! Note that this may not be that simple. When you call the tpl function inside a subchart, the parent chart values may not be accessible. Therefore it will try to access a clusterDomain value inside the grafana chart. In this sense, you may need to use the global variable for this case.
In any case, contributions are welcome so feel free to submit a PR with the feature and the team will take a look.
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.