package rules
import "helm.sh/helm/v3/pkg/lint/rules"
Index ¶
- func Chartfile(linter *support.Linter)
- func Dependencies(linter *support.Linter)
- func Templates(linter *support.Linter, values map[string]interface{}, namespace string, _ bool)
- func TemplatesWithKubeVersion(linter *support.Linter, values map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion)
- func TemplatesWithSkipSchemaValidation(linter *support.Linter, values map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion, skipSchemaValidation bool)
- func Values(linter *support.Linter)
- func ValuesWithOverrides(linter *support.Linter, values map[string]interface{})
- type K8sYamlStruct
Functions ¶
func Chartfile ¶
Chartfile runs a set of linter rules related to Chart.yaml file
func Dependencies ¶
Dependencies runs lints against a chart's dependencies
See https://github.com/helm/helm/issues/7910
func Templates ¶
Templates lints the templates in the Linter.
func TemplatesWithKubeVersion ¶
func TemplatesWithKubeVersion(linter *support.Linter, values map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion)
TemplatesWithKubeVersion lints the templates in the Linter, allowing to specify the kubernetes version.
func TemplatesWithSkipSchemaValidation ¶
func TemplatesWithSkipSchemaValidation(linter *support.Linter, values map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion, skipSchemaValidation bool)
TemplatesWithSkipSchemaValidation lints the templates in the Linter, allowing to specify the kubernetes version and if schema validation is enabled or not.
func Values ¶
Values lints a chart's values.yaml file.
This function is deprecated and will be removed in Helm 4.
func ValuesWithOverrides ¶
ValuesWithOverrides tests the values.yaml file.
If a schema is present in the chart, values are tested against that. Otherwise, they are only tested for well-formedness.
If additional values are supplied, they are coalesced into the values in values.yaml.
Types ¶
type K8sYamlStruct ¶
type K8sYamlStruct struct { APIVersion string `json:"apiVersion"` Kind string Metadata k8sYamlMetadata }
K8sYamlStruct stubs a Kubernetes YAML file.
DEPRECATED: In Helm 4, this will be made a private type, as it is for use only within the rules package.
Source Files ¶
chartfile.go dependencies.go deprecations.go template.go values.go
- Version
- v3.17.3 (latest)
- Published
- Apr 9, 2025
- Platform
- linux/amd64
- Imports
- 27 packages
- Last checked
- 1 month ago –
Tools for package owners.