Documentation
¶
Index ¶
- func AddRepoIfNotExist(repoName string, repoUrl string) error
- func DeleteRelease(name, namespace string) error
- func GetRelease(name, namespace string) (*release.Release, error)
- func ListReleases(namespaces ...string) ([]*release.Release, error)
- func SetNamespace(helmConfig *action.Configuration, namespace string) error
- func UpdateHelmRepos() error
- func UpgradeRelease(name, repo, chart, namespace string, vals map[string]interface{}) (*release.Release, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRepoIfNotExist ¶
AddRepoIfNotExist will add the repo if the repo doesn't exist
func DeleteRelease ¶
DeleteRelease will delete the given release
func ListReleases ¶
ListReleases returns a list of all the releases for the given namespaces. Inputs: takes a list of namespaces to search releases in. If empty string is given as input then returns all releases from all namespaces.
func SetNamespace ¶
func SetNamespace(helmConfig *action.Configuration, namespace string) error
SetNamespace is used to set the namespace of the kubernetes client used in helm action.Configuration. Currently the helm3 sdk does not support to change namespace for kubernetes to deploy in. Credits: https://github.com/helm/helm/issues/8780#issuecomment-889320955 for more details. This function will not be needed in helm version 4.
Types ¶
This section is empty.