Documentation
¶
Index ¶
- Constants
- func ChartVersion(cfg *action.Configuration, releaseName string) (*chart.Chart, error)
- func DownloadChartRelease(repoName, repoURL, chartName, chartVersion string, options ...getter.Option) (string, error)
- func ExtractChartRelease(saved, repoName, chartName, chartVersion string) (string, error)
- func GetChartTargetDir(repoName, chartName string) (string, error)
- func Install(cfg *action.Configuration, releaseName, path, namespace string, ...) (*release.Release, error)
- func ListInstallations(cfg *action.Configuration) ([]*release.Release, error)
- func MergeValuesFile(cfg *action.Configuration, settings *cli.EnvSettings, ...) (*os.File, error)
- func Release(cfg *action.Configuration, releaseName string) (*release.Release, error)
- func SetValues(cfg *action.Configuration, releaseName string) (map[string]interface{}, error)
- func Uninstall(cfg *action.Configuration, releaseName string) (*release.UninstallReleaseResponse, error)
- func UpgradeValues(cfg *action.Configuration, chartDir, chartName, releaseName string, ...) (*release.Release, error)
- func ValuesYaml(chartVersion string) (io.Reader, error)
- type Upgrader
Constants ¶
View Source
const ( ManagedLabel = "app.kubernetes.io/managed-by" ManagedLabelValue = "Helm" ReleaseAnnotation = "meta.helm.sh/release-name" StableK8ssandraRepoURL = "https://helm.k8ssandra.io/" // RepoName is the name of k8ssandra's helm repo chart K8ssandraRepoName = "k8ssandra" )
View Source
const (
AllSubCharts = "_"
)
Variables ¶
This section is empty.
Functions ¶
func ChartVersion ¶
ChartVersion gets the release's chart version or returns an error if it did not exist
func DownloadChartRelease ¶
func DownloadChartRelease(repoName, repoURL, chartName, chartVersion string, options ...getter.Option) (string, error)
DownloadChartRelease fetches the k8ssandra target version and extracts it to a directory which path is returned
func ExtractChartRelease ¶
func GetChartTargetDir ¶ added in v0.3.0
func ListInstallations ¶
func ListInstallations(cfg *action.Configuration) ([]*release.Release, error)
func MergeValuesFile ¶
func MergeValuesFile(cfg *action.Configuration, settings *cli.EnvSettings, chartDir, chartVersion, chartName, releaseName string) (*os.File, error)
func SetValues ¶
func SetValues(cfg *action.Configuration, releaseName string) (map[string]interface{}, error)
SetValues returns the deployed Helm releases modified values
func Uninstall ¶
func Uninstall(cfg *action.Configuration, releaseName string) (*release.UninstallReleaseResponse, error)
func UpgradeValues ¶
Types ¶
type Upgrader ¶ added in v0.3.0
type Upgrader struct {
// contains filtered or unexported fields
}
Upgrader is a utility to update the CRDs in a helm chart's pre-upgrade hook
func NewUpgrader ¶ added in v0.3.0
func NewUpgrader(c client.Client, repoName, repoURL, chartName string, subCharts []string) (*Upgrader, error)
NewUpgrader returns a new Upgrader client
func (*Upgrader) Upgrade ¶ added in v0.3.0
func (u *Upgrader) Upgrade(ctx context.Context, chartVersion string) ([]unstructured.Unstructured, error)
Upgrade installs the missing CRDs or updates them if they exists already
Click to show internal directories.
Click to hide internal directories.