Documentation ¶
Overview ¶
nolint
nolint
nolint
Index ¶
- func Namespace() string
- func SetContext(ctx *Context) error
- type Context
- type HelmChart
- type HelmChartClient
- type HelmClient
- type HelmRelease
- func (r *HelmRelease) Get(path string) interface{}
- func (r *HelmRelease) GetResources() (helm.ResourceList, error)
- func (r *HelmRelease) Install(wait bool) error
- func (r *HelmRelease) Name() string
- func (r *HelmRelease) Namespace() string
- func (r *HelmRelease) Set(path string, value interface{}) *HelmRelease
- func (r *HelmRelease) SetPassword(password string) *HelmRelease
- func (r *HelmRelease) SetSkipCRDs(skipCRDs bool) *HelmRelease
- func (r *HelmRelease) SetUsername(userName string) *HelmRelease
- func (r *HelmRelease) SkipCRDs() bool
- func (r *HelmRelease) Timeout() time.Duration
- func (r *HelmRelease) Uninstall() error
- func (r *HelmRelease) Values() map[string]interface{}
- func (r *HelmRelease) WithTimeout(timeout time.Duration) *HelmRelease
- type HelmReleaseClient
- type ReleaseContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { // WorkDir is the Helm working directory WorkDir string // Values is a mapping of release values Values map[string][]string // ValueFiles is a mapping of release value files ValueFiles map[string][]string }
Context is a Helm context
func (*Context) Release ¶
func (c *Context) Release(name string) *ReleaseContext
Release returns the context for the given release
type HelmChart ¶
type HelmChart struct { HelmReleaseClient // contains filtered or unexported fields }
HelmChart is a Helm chart
func (*HelmChart) Release ¶
func (c *HelmChart) Release(name string) *HelmRelease
Release returns the release with the given name
func (*HelmChart) Releases ¶
func (c *HelmChart) Releases() []*HelmRelease
Releases returns a list of releases of the chart
func (*HelmChart) Repository ¶
Repository returns the chart's repository URL
type HelmChartClient ¶
type HelmChartClient interface { // Charts returns a list of charts in the namespace Charts() []*HelmChart // HelmChart gets a chart in the namespace Chart(name string, repository ...string) *HelmChart }
HelmChartClient is a Helm chart client
type HelmClient ¶
type HelmClient interface { HelmChartClient HelmReleaseClient // Namespace returns the client for the given namespace Namespace(namespace string) HelmClient }
HelmClient is a Helm client
type HelmRelease ¶
type HelmRelease struct {
// contains filtered or unexported fields
}
HelmRelease is a Helm chart release
func (*HelmRelease) GetResources ¶
func (r *HelmRelease) GetResources() (helm.ResourceList, error)
GetResources returns a list of chart resources
func (*HelmRelease) Install ¶
func (r *HelmRelease) Install(wait bool) error
Install installs the Helm chart
func (*HelmRelease) Namespace ¶
func (r *HelmRelease) Namespace() string
Namespace returns the release namespace
func (*HelmRelease) Set ¶
func (r *HelmRelease) Set(path string, value interface{}) *HelmRelease
Set sets a value
func (*HelmRelease) SetPassword ¶
func (r *HelmRelease) SetPassword(password string) *HelmRelease
SetPassword sets the authentication password
func (*HelmRelease) SetSkipCRDs ¶
func (r *HelmRelease) SetSkipCRDs(skipCRDs bool) *HelmRelease
SetSkipCRDs sets whether to skip CRDs
func (*HelmRelease) SetUsername ¶
func (r *HelmRelease) SetUsername(userName string) *HelmRelease
SetUsername sets the authentication user name
func (*HelmRelease) SkipCRDs ¶
func (r *HelmRelease) SkipCRDs() bool
SkipCRDs returns whether CRDs are skipped in the release
func (*HelmRelease) Timeout ¶
func (r *HelmRelease) Timeout() time.Duration
Timeout returns the maximum time to allow for an install operation to complete
func (*HelmRelease) Uninstall ¶
func (r *HelmRelease) Uninstall() error
Uninstall uninstalls the Helm chart
func (*HelmRelease) Values ¶
func (r *HelmRelease) Values() map[string]interface{}
Values is the release's values
func (*HelmRelease) WithTimeout ¶
func (r *HelmRelease) WithTimeout(timeout time.Duration) *HelmRelease
WithTimeout specifies the maximum time to allow for an install operation to complete
type HelmReleaseClient ¶
type HelmReleaseClient interface { // Releases returns a list of releases in the namespace Releases() []*HelmRelease // Release gets a chart release in the namespace Release(name string) *HelmRelease }
HelmReleaseClient is a Helm release client
type ReleaseContext ¶
type ReleaseContext struct { // ValueFiles is the release value files ValueFiles []string // Values is the release values Values []string }
ReleaseContext is a Helm release context