diff --git a/pkg/app/app.go b/pkg/app/app.go index 6d5d3516..f6b8db22 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -14,6 +14,10 @@ import ( "path/filepath" "sort" "syscall" + + "github.com/roboll/helmfile/helmexec" + "github.com/roboll/helmfile/state" + "go.uber.org/zap" ) type App struct { @@ -286,11 +290,11 @@ func (a *App) findDesiredStateFiles(specifiedPath string) ([]string, error) { } else if defaultFile != "" { return []string{defaultFile}, nil } else { - return []string{}, fmt.Errorf("no state file found. It must be named %s/*.yaml, %s, or %s, or otherwise specified with the --file flag", DefaultHelmfileDirectory, DefaultHelmfile, DeprecatedHelmfile) + return []string{}, fmt.Errorf("no state file found. It must be named %s/*.{yaml,yml}, %s, or %s, or otherwise specified with the --file flag", DefaultHelmfileDirectory, DefaultHelmfile, DeprecatedHelmfile) } } - files, err := a.glob(filepath.Join(helmfileDir, "*.yaml")) + files, err := a.glob(filepath.Join(helmfileDir, "*.y*ml")) if err != nil { return []string{}, err }