A common use case for Kubernetes ConfigMaps and Secrets are to put values in a multiline string, which may need to be templated. Templating that multiline string isn’t obvious (it requires yaml.encode()).
What
There exists an example of this. Put this or another example into the official docs.
How
Either in the playground or in the carvel.dev/ytt docs.
Why
A common use case for Kubernetes ConfigMaps and Secrets are to put values in a multiline string, which may need to be templated. Templating that multiline string isn’t obvious (it requires
yaml.encode()
).What
There exists an example of this. Put this or another example into the official docs.
How
Either in the playground or in the carvel.dev/ytt docs.
Here is a request for this