Add missing repos on lint command. (#305)

https://github.com/roboll/helmfile/issues/303
This commit is contained in:
Karl Stoney 2018-09-06 02:07:43 +01:00 committed by KUOKA Yusuke
parent af121b85b5
commit d0a4008965
1 changed files with 5 additions and 2 deletions

View File

@ -13,6 +13,8 @@ import (
"io/ioutil"
"strings"
"github.com/roboll/helmfile/args"
"github.com/roboll/helmfile/environment"
"github.com/roboll/helmfile/helmexec"
@ -21,7 +23,6 @@ import (
"github.com/urfave/cli"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"strings"
)
const (
@ -242,7 +243,9 @@ func main() {
values := c.StringSlice("values")
args := args.GetArgs(c.String("args"), state)
workers := c.Int("concurrency")
if errs := state.SyncRepos(helm); errs != nil && len(errs) > 0 {
return errs
}
return state.LintReleases(helm, values, args, workers)
})
},