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