How to render only selected template in Helm?

Viewed 17663

I have ~20 yamls in my helm chart + tons of dependencies and I want to check the rendered output of the specific one. helm template renders all yamls and produces a hundred lines of code. Is there a way (it would be nice to have even a regex) to render only selected template (by a file or eg. a name).

1 Answers

From helm template documentation

-s, --show-only stringArray only show manifests rendered from the given templates

For rendering only one resource use helm template -s templates/deployment.yaml .

Related