Merge branch 'master' into keep-history
This commit is contained in:
@@ -6,8 +6,9 @@ import (
|
||||
|
||||
// Lint is an execution step that calls `helm lint` when executed.
|
||||
type Lint struct {
|
||||
Chart string
|
||||
cmd cmd
|
||||
Chart string
|
||||
Strict bool
|
||||
cmd cmd
|
||||
}
|
||||
|
||||
// Execute executes the `helm lint` command.
|
||||
@@ -41,6 +42,9 @@ func (l *Lint) Prepare(cfg Config) error {
|
||||
for _, vFile := range cfg.ValuesFiles {
|
||||
args = append(args, "--values", vFile)
|
||||
}
|
||||
if l.Strict {
|
||||
args = append(args, "--strict")
|
||||
}
|
||||
|
||||
args = append(args, l.Chart)
|
||||
|
||||
|
||||
@@ -87,7 +87,8 @@ func (suite *LintTestSuite) TestPrepareWithLintFlags() {
|
||||
}
|
||||
|
||||
l := Lint{
|
||||
Chart: "./uk/top_40",
|
||||
Chart: "./uk/top_40",
|
||||
Strict: true,
|
||||
}
|
||||
|
||||
command = func(path string, args ...string) cmd {
|
||||
@@ -97,6 +98,7 @@ func (suite *LintTestSuite) TestPrepareWithLintFlags() {
|
||||
"--set-string", "version=2.0",
|
||||
"--values", "/usr/local/underrides",
|
||||
"--values", "/usr/local/overrides",
|
||||
"--strict",
|
||||
"./uk/top_40"}, args)
|
||||
|
||||
return suite.mockCmd
|
||||
|
||||
Reference in New Issue
Block a user