Merge branch 'master' into keep-history

This commit is contained in:
Erin Call
2020-01-02 12:29:32 -08:00
committed by GitHub
6 changed files with 20 additions and 7 deletions

View File

@@ -43,6 +43,7 @@ type Config struct {
Chart string `` // Chart argument to use in applicable helm commands
Release string `` // Release argument to use in applicable helm commands
Force bool `` // Pass --force to applicable helm commands
LintStrictly bool `split_words:"true"` // Pass --strict to `helm lint`
Stdout io.Writer `ignored:"true"`
Stderr io.Writer `ignored:"true"`

View File

@@ -134,7 +134,8 @@ var lint = func(cfg Config) []Step {
steps = append(steps, depUpdate(cfg)...)
}
steps = append(steps, &run.Lint{
Chart: cfg.Chart,
Chart: cfg.Chart,
Strict: cfg.LintStrictly,
})
return steps

View File

@@ -301,14 +301,16 @@ func (suite *PlanTestSuite) TestAddRepos() {
func (suite *PlanTestSuite) TestLint() {
cfg := Config{
Chart: "./flow",
Chart: "./flow",
LintStrictly: true,
}
steps := lint(cfg)
suite.Equal(1, len(steps))
want := &run.Lint{
Chart: "./flow",
Chart: "./flow",
Strict: true,
}
suite.Equal(want, steps[0])
}