mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
638 B
29 lines
638 B
package lint
|
|
|
|
import (
|
|
"helm.sh/helm/v3/pkg/chartutil"
|
|
"helm.sh/helm/v3/pkg/lint/support"
|
|
)
|
|
|
|
type LinterOption func(linter *support.Linter)
|
|
|
|
// WithReleaseName specifies chart release name
|
|
func WithReleaseName(name string) LinterOption {
|
|
return func(linter *support.Linter) {
|
|
linter.ReleaseName = name
|
|
}
|
|
}
|
|
|
|
// WithKubeVersion specifies kube version
|
|
func WithKubeVersion(version *chartutil.KubeVersion) LinterOption {
|
|
return func(linter *support.Linter) {
|
|
linter.KubeVersion = version
|
|
}
|
|
}
|
|
|
|
func WithSchemaValidation(enabled bool) LinterOption {
|
|
return func(linter *support.Linter) {
|
|
linter.SkipSchemaValidation = enabled
|
|
}
|
|
}
|