rules

package
v1.23.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: Apache-2.0, Apache-2.0 Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chartfile

func Chartfile(linter *support.Linter)

Chartfile runs a set of linter rules related to Chart.yaml file

func Dependencies

func Dependencies(linter *support.Linter, opts helmopts.HelmOptions)

Dependencies runs lints against a chart's dependencies

See https://github.com/helm/helm/issues/7910

func Templates

func Templates(linter *support.Linter, values map[string]interface{}, namespace string, _ bool, opts helmopts.HelmOptions)

Templates lints the templates in the Linter.

func TemplatesWithKubeVersion

func TemplatesWithKubeVersion(linter *support.Linter, values map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion, opts helmopts.HelmOptions)

TemplatesWithKubeVersion lints the templates in the Linter, allowing to specify the kubernetes version.

func Values

func Values(linter *support.Linter)

Values lints a chart's values.yaml file.

This function is deprecated and will be removed in Helm 4.

func ValuesWithOverrides

func ValuesWithOverrides(linter *support.Linter, values map[string]interface{})

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL