diff --git a/pkg/action/lint.go b/pkg/action/lint.go index 4a709dc9f..a86dd796a 100644 --- a/pkg/action/lint.go +++ b/pkg/action/lint.go @@ -126,5 +126,5 @@ func lintChart(path string, vals map[string]interface{}, namespace string, kubeV return linter, errors.Wrap(err, "unable to check Chart.yaml file in chart") } - return lint.AllWithKubeVersion(chartPath, vals, namespace, kubeVersion, quiet), nil + return lint.AllWithKubeVersionAndQuiet(chartPath, vals, namespace, kubeVersion, quiet), nil } diff --git a/pkg/lint/lint.go b/pkg/lint/lint.go index 9e7406235..7e4ea59eb 100644 --- a/pkg/lint/lint.go +++ b/pkg/lint/lint.go @@ -25,12 +25,17 @@ import ( ) // All runs all of the available linters on the given base directory. -func All(basedir string, values map[string]interface{}, namespace string, quiet bool) support.Linter { - return AllWithKubeVersion(basedir, values, namespace, nil, quiet) +func All(basedir string, values map[string]interface{}, namespace string, _ bool) support.Linter { + return AllWithKubeVersion(basedir, values, namespace, nil) } // AllWithKubeVersion runs all the available linters on the given base directory, allowing to specify the kubernetes version. -func AllWithKubeVersion(basedir string, values map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion, quiet bool) support.Linter { +func AllWithKubeVersion(basedir string, values map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion) support.Linter { + return AllWithKubeVersionAndQuiet(basedir, values, namespace, kubeVersion, false) +} + +// AllWithKubeVersionAndQuiet allows the quiet flag to be passed to the linter +func AllWithKubeVersionAndQuiet(basedir string, values map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion, quiet bool) support.Linter { // Using abs path to get directory context chartDir, _ := filepath.Abs(basedir)