Search code examples
kuberneteskubernetes-helm

View template files of Helm chart


With helm inspect [CHART] I can view the content of chart.yaml and values.yaml of a chart. Is there a way to also view the template files of a chart? Preferably through a Helm command.

On a sidenote: this seems like a pretty important feature to me. I would always want to know what the chart exactly does before installing it. Or is this not what helm inspect was intended for? Might the recommended way be to simply check GitHub for details how the chart works?


Solution

  • If you want to check the templates for given chart you can use helm template [chartname] command.

    The docs describe it as :

    Render chart templates locally and display the output.

    Any values that would normally be looked up or retrieved in-cluster will be faked locally. Additionally, none of the server-side testing of chart validity (e.g. whether an API is supported) is done.