update dependencies (#6267)
Signed-off-by: hongming <coder.scala@gmail.com>
This commit is contained in:
9
vendor/helm.sh/helm/v3/pkg/lint/lint.go
vendored
9
vendor/helm.sh/helm/v3/pkg/lint/lint.go
vendored
@@ -24,20 +24,25 @@ import (
|
||||
"helm.sh/helm/v3/pkg/lint/support"
|
||||
)
|
||||
|
||||
// All runs all of the available linters on the given base directory.
|
||||
// All runs all the available linters on the given base directory.
|
||||
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) support.Linter {
|
||||
return AllWithKubeVersionAndSchemaValidation(basedir, values, namespace, kubeVersion, false)
|
||||
}
|
||||
|
||||
// AllWithKubeVersionAndSchemaValidation runs all the available linters on the given base directory, allowing to specify the kubernetes version and if schema validation is enabled or not.
|
||||
func AllWithKubeVersionAndSchemaValidation(basedir string, values map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion, skipSchemaValidation bool) support.Linter {
|
||||
// Using abs path to get directory context
|
||||
chartDir, _ := filepath.Abs(basedir)
|
||||
|
||||
linter := support.Linter{ChartDir: chartDir}
|
||||
rules.Chartfile(&linter)
|
||||
rules.ValuesWithOverrides(&linter, values)
|
||||
rules.TemplatesWithKubeVersion(&linter, values, namespace, kubeVersion)
|
||||
rules.TemplatesWithSkipSchemaValidation(&linter, values, namespace, kubeVersion, skipSchemaValidation)
|
||||
rules.Dependencies(&linter)
|
||||
return linter
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user