Update pkg/state/create.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
fdb00f44a9
commit
a5a44e5242
|
|
@ -109,7 +109,7 @@ func (c *StateCreator) Parse(content []byte, baseDir, file string) (*HelmState,
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
break
|
break
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
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}
|
return nil, &StateLoadError{fmt.Sprintf("failed to read %s: reading document at index %d, you should 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 {
|
if err := mergo.Merge(&state, &intermediate, mergo.WithAppendSlice); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue