Documentation
¶
Index ¶
- Constants
- func DiscoverChartDirs(path string) <-chan string
- func DiscoverChartTests(path string) <-chan string
- func Download(version, dest string) error
- func Supported() <-chan Helm
- type Dependency
- type Flag
- type Helm
- type Helm3
- func (h *Helm3) Delete(namespace, release string) error
- func (h *Helm3) Init() error
- func (h *Helm3) Install(namespace, release, chart string, flags ...Flag) error
- func (h *Helm3) Package(chart string, flags ...Flag) error
- func (h *Helm3) RepoAdd(name, url string, flags ...Flag) error
- func (h *Helm3) RepoUpdate() error
- func (h *Helm3) Template(namespace, release, chart string, flags ...Flag) (io.Reader, error)
- func (h *Helm3) Test(namespace, release string) error
- func (h *Helm3) Update(namespace, release, chart string, flags ...Flag) error
- func (h *Helm3) UpdateDeps(chart string) error
- func (h *Helm3) Version() string
- type Maintainer
- type Metadata
Constants ¶
View Source
const DefaultHelmVersion = "v3.18.4"
Variables ¶
This section is empty.
Functions ¶
func DiscoverChartDirs ¶
func DiscoverChartTests ¶
Types ¶
type Dependency ¶
type Dependency struct { // Name is the name of the dependency. // // This must mach the name in the dependency's Chart.yaml. Name string `json:"name"` // Version is the version (range) of this chart. // // A lock file will always produce a single version, while a dependency // may contain a semantic version range. Version string `json:"version,omitempty"` // The URL to the repository. // // Appending `index.yaml` to this string should result in a URL that can be // used to fetch the repository index. Repository string `json:"repository"` // A yaml path that resolves to a boolean, used for enabling/disabling charts (e.g. subchart1.enabled ) Condition string `json:"condition,omitempty"` // Tags can be used to group charts for enabling/disabling together Tags []string `json:"tags,omitempty"` // Enabled bool determines if chart should be loaded Enabled bool `json:"enabled,omitempty"` // ImportValues holds the mapping of source values to parent key to be imported. Each item can be a // string or pair of child/parent sublist items. ImportValues []interface{} `json:"import-values,omitempty"` // Alias usable alias to be used for the chart Alias string `json:"alias,omitempty"` }
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.
type Flag ¶
type Flag func() []string
func RepoPassword ¶
func RepoUsername ¶
func UpgradeInstall ¶
func UpgradeInstall() Flag
type Helm ¶
type Helm interface { Template(namespace, release, chart string, flags ...Flag) (io.Reader, error) Install(namespace, release, chart string, flags ...Flag) error Update(namespace, release, chart string, flags ...Flag) error Package(chart string, flags ...Flag) error UpdateDeps(chart string) error Test(namespace, release string) error Delete(namespace, release string) error Init() error RepoAdd(name, url string, flags ...Flag) error RepoUpdate() error Version() string }
type Helm3 ¶
func (*Helm3) RepoUpdate ¶
func (*Helm3) UpdateDeps ¶
type Maintainer ¶
type Maintainer struct { // Name is a user name or organization name Name string `json:"name,omitempty"` // Email is an optional email address to contact the named maintainer Email string `json:"email,omitempty"` // URL is an optional URL to an address for the named maintainer URL string `json:"url,omitempty"` }
Maintainer describes a Chart maintainer.
type Metadata ¶
type Metadata struct { // The name of the chart. Required. Name string `json:"name,omitempty"` // The URL to a relevant project page, git repo, or contact person Home string `json:"home,omitempty"` // Source is the URL to the source code of this chart Sources []string `json:"sources,omitempty"` // A SemVer 2 conformant version string of the chart. Required. Version string `json:"version,omitempty"` // A one-sentence description of the chart Description string `json:"description,omitempty"` // A list of string keywords Keywords []string `json:"keywords,omitempty"` // A list of name and URL/email address combinations for the maintainer(s) Maintainers []*Maintainer `json:"maintainers,omitempty"` // The URL to an icon file. Icon string `json:"icon,omitempty"` // The API Version of this chart. Required. APIVersion string `json:"apiVersion,omitempty"` // The condition to check to enable chart Condition string `json:"condition,omitempty"` // The tags to check to enable chart Tags string `json:"tags,omitempty"` // The version of the application enclosed inside of this chart. AppVersion string `json:"appVersion,omitempty"` // Whether or not this chart is deprecated Deprecated bool `json:"deprecated,omitempty"` // Annotations are additional mappings uninterpreted by Helm, // made available for inspection by other applications. Annotations map[string]string `json:"annotations,omitempty"` // KubeVersion is a SemVer constraint specifying the version of Kubernetes required. KubeVersion string `json:"kubeVersion,omitempty"` // Dependencies are a list of dependencies for a chart. Dependencies []*Dependency `json:"dependencies,omitempty"` // Specifies the chart type: application or library Type string `json:"type,omitempty"` }
Metadata for a Chart file. This models the structure of a Chart.yaml file.
func LoadMetadata ¶
Click to show internal directories.
Click to hide internal directories.