Documentation ¶
Index ¶
- Constants
- func ParseValues(preValues map[string]string) string
- type ChartSpec
- type Client
- func (c *Client) AddOrUpdateRepo(repoEntry *repo.Entry) error
- func (c *Client) GetReleaseHistory(releaseName string) ([]*release.Release, error)
- func (c *Client) InstallRelease(releaseName, chartName, version string, values ...string) error
- func (c *Client) UninstallRelease(releaseName string) error
- func (c *Client) UpgradeRelease(releaseName, localRepoName, targetVersion string) error
- type Helm
- type Manager
- type Option
- type RESTClientGetterImpl
- func (r *RESTClientGetterImpl) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (r *RESTClientGetterImpl) ToRESTConfig() (*rest.Config, error)
- func (r *RESTClientGetterImpl) ToRESTMapper() (meta.RESTMapper, error)
- func (r *RESTClientGetterImpl) ToRawKubeConfigLoader() clientcmd.ClientConfig
Constants ¶
View Source
const ( EnvHelmNamespace = "HELM_NAMESPACE" EnvHelmDriver = "HELM_DRIVER" EnvHelmDebug = "HELM_DEBUG" EnvLocalChartPath = "LOCAL_CHART_PATH" EnvLocalChartDiscoverDir = "LOCAL_CHART_DISCOVER_DIR" DefaultChartSuffix = ".tgz" )
View Source
const ( ActionInstall = iota ActionUpgrade ActionUninstall )
Variables ¶
This section is empty.
Functions ¶
func ParseValues ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddOrUpdateRepo ¶
AddOrUpdateRepo Add or update repo from repo config
func (*Client) GetReleaseHistory ¶
GetReleaseHistory check release installed or not
func (*Client) InstallRelease ¶
InstallRelease install release
func (*Client) UninstallRelease ¶
UninstallRelease uninstall release which deployed
func (*Client) UpgradeRelease ¶
UpgradeRelease upgrade release version
type Helm ¶
type Helm interface { AddOrUpdateRepo(repoEntry *repo.Entry) error GetReleaseHistory(releaseName string) ([]*release.Release, error) InstallRelease(releaseName, chartName, version string, values ...string) error UninstallRelease(releaseName string) error UpgradeRelease(releaseName, localRepoName, targetVersion string) error }
type Manager ¶
type Manager struct { Charts []*ChartSpec HelmClient Helm LocalRepoName string TimeOut time.Duration }
func (*Manager) ActionExecute ¶
type Option ¶
type Option func(client *Client)
func WithLocalChartDiscoverDir ¶
WithLocalChartDiscoverDir with local chart discover dir
func WithRESTClientGetter ¶
func WithRESTClientGetter(getter *RESTClientGetterImpl) Option
WithRESTClientGetter with custom rest client getter, use rest.Config to visit Kubernetes
type RESTClientGetterImpl ¶
type RESTClientGetterImpl struct {
// contains filtered or unexported fields
}
RESTClientGetterImpl impl genericclioptions.RESTClientGetter
func NewRESTClientGetterImpl ¶
func NewRESTClientGetterImpl(rc *rest.Config) *RESTClientGetterImpl
NewRESTClientGetterImpl new RESTClientGetterImpl
func (*RESTClientGetterImpl) ToDiscoveryClient ¶
func (r *RESTClientGetterImpl) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
func (*RESTClientGetterImpl) ToRESTConfig ¶
func (r *RESTClientGetterImpl) ToRESTConfig() (*rest.Config, error)
func (*RESTClientGetterImpl) ToRESTMapper ¶
func (r *RESTClientGetterImpl) ToRESTMapper() (meta.RESTMapper, error)
func (*RESTClientGetterImpl) ToRawKubeConfigLoader ¶
func (r *RESTClientGetterImpl) ToRawKubeConfigLoader() clientcmd.ClientConfig
Click to show internal directories.
Click to hide internal directories.