Reputation: 555
I create a helm chart directory
helm create myChart
After updating the templates and values I run
helm template .
Everything looks as expected. Next, I want to output the manifest files into another directory
helm template . --output-dir ./test
wrote ./test/myChart/templates/serviceaccount.yaml
wrote ./test/myChart/templates/service.yaml
wrote ./test/myChart/templates/deployment.yaml
wrote ./test/myChart/templates/tests/test-connection.yaml
Is there a way to output just the file manifest without the mychart/templates
?
wrote ./test/serviceaccount.yaml
wrote ./test/service.yaml
wrote ./test/deployment.yaml
wrote ./test/test-connection.yaml
Upvotes: 4
Views: 7385
Reputation: 5541
I don't think there is such an option in the Helm command itself, but you can always run the following command.
helm template myChart . --output-dir ./test && mv ./test/myChart/templates/* ./test && rm -r ./test/myChart
Upvotes: 4