MCPcopy
hub / github.com/helm/helm / Dependency

Struct Dependency

pkg/chart/v2/dependency.go:24–50  ·  view source on GitHub ↗

Dependency describes a chart upon which another chart depends. Dependencies can be used to express developer intent, or to capture the state of a chart.

Source from the content-addressed store, hash-verified

22// Dependencies can be used to express developer intent, or to capture the state
23// of a chart.
24type Dependency struct {
25 // Name is the name of the dependency.
26 //
27 // This must mach the name in the dependency's Chart.yaml.
28 Name string `json:"name" yaml:"name"`
29 // Version is the version (range) of this chart.
30 //
31 // A lock file will always produce a single version, while a dependency
32 // may contain a semantic version range.
33 Version string `json:"version,omitempty" yaml:"version,omitempty"`
34 // The URL to the repository.
35 //
36 // Appending `index.yaml` to this string should result in a URL that can be
37 // used to fetch the repository index.
38 Repository string `json:"repository" yaml:"repository"`
39 // A yaml path that resolves to a boolean, used for enabling/disabling charts (e.g. subchart1.enabled )
40 Condition string `json:"condition,omitempty" yaml:"condition,omitempty"`
41 // Tags can be used to group charts for enabling/disabling together
42 Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
43 // Enabled bool determines if chart should be loaded
44 Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
45 // ImportValues holds the mapping of source values to parent key to be imported. Each item can be a
46 // string or pair of child/parent sublist items.
47 ImportValues []any `json:"import-values,omitempty" yaml:"import-values,omitempty"`
48 // Alias usable alias to be used for the chart
49 Alias string `json:"alias,omitempty" yaml:"alias,omitempty"`
50}
51
52// Validate checks for common problems with the dependency datastructure in
53// the chart. This check must be done at load time before the dependency's charts are

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected