Documentation
¶
Index ¶
- func CheckRelease(name, namespace string) (exist bool, err error)
- func DeleteRelease(name, namespace string) error
- func DeleteReleaseIfExists(name, namespace string) error
- func GenerateHelmTemplate(name string, namespace string, valueFileName string, chartName string, ...) (templateFileName string, err error)
- func GenerateValueFile(values interface{}) (valueFileName string, err error)
- func GetChartName(chart string) string
- func GetChartVersion(chart string) (version string, err error)
- func InstallRelease(name string, namespace string, valueFile string, chartName string) error
- func ListAllReleasesWithDetail(namespace string) (releaseMap map[string][]string, err error)
- func ListReleaseMap(namespace string) (releaseMap map[string]string, err error)
- func ListReleases(namespace string) (releases []string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRelease ¶
CheckRelease checks if the release with the given name and namespace exist.
func DeleteRelease ¶
DeleteRelease deletes release with the name and namespace
func DeleteReleaseIfExists ¶
DeleteReleaseIfExists deletes a release with given name and namespace if it exists. A wrapper of CheckRelease() and DeleteRelease()
func GenerateHelmTemplate ¶
func GenerateHelmTemplate(name string, namespace string, valueFileName string, chartName string, options ...string) (templateFileName string, err error)
GenerateHelmTemplate generates helm template without tiller: helm template -f values.yaml chart_name Exec /usr/local/bin/helm, [template -f /tmp/values313606961 --namespace default --name hj /charts/tf-horovod] returns generated template file: templateFileName
func GenerateValueFile ¶
GenerateValueFile generates value file. It returns the name of the value file and error
func GetChartName ¶
GetChartName extracts the last element of the chart's path as the chart's name
func GetChartVersion ¶
GetChartVersion checks the chart version by given the chart directory helm inspect chart /charts/tf-horovod
func InstallRelease ¶
InstallRelease installs the release with cmd: helm install -f values.yaml chart_name, support helm v3
func ListAllReleasesWithDetail ¶
ListAllReleasesWithDetail returns a map with all releases' names and other info in a given namespace
func ListReleaseMap ¶
ListReleaseMap returns a map with all releases' names and app versions in a given namespace.
func ListReleases ¶
ListReleases return an array with all releases' names in a given namespace
Types ¶
This section is empty.