validate command ΒΆ

bash

Use multiple arguments to validate multiple files:

bash

Available flags:

FlagRequiredShortDescription
vars-fileNo-fpath to FILE containing template variables, must be JSON or YAML format
varNotemplate variable in KEY=VALUE form, can either be a comma separated list or specified multiple times.
verboseNo-vprint all the template variables and final resources after templating

All flags must be specified before arguments:

bash

See the templating section for examples.

Supported Resources ΒΆ

The following resource kinds are supported:

Templating ΒΆ

A templated YAML file can look like this:

nais.yaml

To validate a templated file, provide a variable file or specify the variables as flags.

Variable File ΒΆ

The variable file must be in either JSON or YAML format:

vars.json
vars.yaml

Specify the path to the variable file with the --vars-file flag:

bash

Variable Flags ΒΆ

Specify variables in the key=value form with the --var flag. Multiple variables can be provided as a comma separated list of pairs:

bash

...or by specifying the --var flag multiple times:

bash

If both a variable file and variable flags are provided:

bash

...the flags will override any variables set by the file:

bash

Verbose Output ΒΆ

The --verbose (shorthand -v) flag prints additional information, such as template variables set and the final templated resources:

bash
bash