/helm-template

Helm plugin to add client-side 'helm template' command.

Primary LanguageGoOtherNOASSERTION

Helm Template Plugin

This is a Helm plugin to help chart developers debug their charts. It works like helm install --dry-run --debug, except that it runs locally, has more output options, and is quite a bit faster.

Usage

Render chart templates locally and display the output.

This does not require Tiller. However, 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.

$ helm template [flags] CHART

Flags:

      --notes               show the computed NOTES.txt file as well.
      --set string          set values on the command line. See 'helm install -h'
  -f, --values valueFiles   specify one or more YAML files of values (default [])
  -v, --verbose             show the computed YAML values as well.

Install

Clone the repository into your $GOPATH and then build it.

$ mkdir -p $GOPATH/src/github.com/technosophos/
$ cd $GOPATH/src/github.com/technosophos/
$ git clone https://github.com/technosophos/helm-template.git
$ cd helm-template
$ make install

The above will install this plugin into your $HELM_HOME/plugins directory.

Prerequisites

  • You need to have Go installed. Make sure to set $GOPATH
  • If you don't have Glide installed, this will install it into $GOPATH/bin for you.