The objective of the extension is to boost process of creating Helm charts with the ability to quickly preview your Helm templates as you go.
You start a preview with a command "Open Helm Template Preview".
Or you can use a button in the editor menu to start a preview.
The preview is rerendered when Helm template is saved or active editor is changed.
Preview of your subchart templates should work as well.
Preview uses helm template
command with --debug
flag. When there is an error in the chart you will see debug output of the template if it's available. And details of the error in the error toast.
You need to have Helm CLI installed and available in your PATH. Because preview runs 'helm template' command.
Helm: Open Helm Template Preview
: opens a preview in a tab beside active editor.
Property helm-template-preview-and-more.customValueFileNames
.
You can define custom value file names instead of default values.yaml
.
The setting is a list of strings. An item can be absolute path or path relative to your chart folder.
The items are applied to helm template
command as --values
flags. The item defined first (higher on UI, lefter in the array) has precedence. This logic is opposite to multiple --values
flags, where rightmost item has precedence, so items are applied to the command in reverse.
Before being applied items are checked on existence on the filesystem, items that do not exist are just ignored. If all of the items do not exist the command is called without any --values
flags, that means fallback to values.yaml
default.