Merge branch 'master' into keep-history
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user