Closed t3mi closed 3 years ago
Do you think we should pump the value through the tpl
function to allow for dynamic content?
I doubt that as this is only needed for pods. tpl
functions are useful if you want to apply some common labels for all resources not limiting to podSpec.
Sure, I mean something like this (example from another project):
{{- range .Values.controller.externalAttacher.args }}
- {{ tpl . $root }}
{{- end }}
That would allow (in this context) to do something like this:
arbitraryStuff:
something: otherthing
podLabels:
foo: bar-{{ .Release.Namespace }}
bar: baz-{{ .Release.Namespace }}-{{ .Values.arbitraryStuff.something }}
Sorry, I misunderstood you. Switched to use of tpl
function.
Thanks for the contribution!
Adds configuration of additional pod labels, like cost center.