MCPcopy
hub / github.com/helm/helm / Chart

Struct Chart

pkg/chart/v2/chart.go:38–64  ·  view source on GitHub ↗

Chart is a helm package that contains metadata, a default config, zero or more optionally parameterizable templates, and zero or more charts (dependencies).

Source from the content-addressed store, hash-verified

36// Chart is a helm package that contains metadata, a default config, zero or more
37// optionally parameterizable templates, and zero or more charts (dependencies).
38type Chart struct {
39 // Raw contains the raw contents of the files originally contained in the chart archive.
40 //
41 // This should not be used except in special cases like `helm show values`,
42 // where we want to display the raw values, comments and all.
43 Raw []*common.File `json:"-"`
44 // Metadata is the contents of the Chartfile.
45 Metadata *Metadata `json:"metadata"`
46 // Lock is the contents of Chart.lock.
47 Lock *Lock `json:"lock"`
48 // Templates for this chart.
49 Templates []*common.File `json:"templates"`
50 // Values are default config for this chart.
51 Values map[string]any `json:"values"`
52 // Schema is an optional JSON schema for imposing structure on Values
53 Schema []byte `json:"schema"`
54 // SchemaModTime the schema was last modified
55 SchemaModTime time.Time `json:"schemamodtime"`
56 // Files are miscellaneous files in a chart archive,
57 // e.g. README, LICENSE, etc.
58 Files []*common.File `json:"files"`
59 // ModTime the chart metadata was last modified
60 ModTime time.Time `json:"modtime,omitzero"`
61
62 parent *Chart
63 dependencies []*Chart
64}
65
66type CRD struct {
67 // Name is the File.Name for the crd file

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected