fix(state): enhance error message for missing .gotmpl extension in helmfile

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2025-04-07 08:15:01 +08:00 committed by yxxhero
parent dfe63135d6
commit fdb00f44a9
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ func (c *StateCreator) Parse(content []byte, baseDir, file string) (*HelmState,
if err == io.EOF {
break
} else if err != nil {
return nil, &StateLoadError{fmt.Sprintf("failed to read %s: reading document at index %d", file, i), err}
return nil, &StateLoadError{fmt.Sprintf("failed to read %s: reading document at index %d, you shuld add .gotmpl extension to your helmfile to enable helmfile to load it as a template since helmfile v1", file, i), err}
}
if err := mergo.Merge(&state, &intermediate, mergo.WithAppendSlice); err != nil {