helm

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetManifests

func GetManifests(ctx context.Context, cli client.Client, logger logr.Logger, name, namespace, chart, version, repoName, repoUrl string, override corev1alpha1.Override, skipCrd, isOCI bool) (data []string, err error)

GetManifests get helm templates

func Install

func Install(ctx context.Context, client client.Client, planName string, manifests []string) (err error)

Install installs a helm chart to the cluster

func RepoAdd

func RepoAdd(ctx context.Context, name, _url string) (string, error)

func RepoRemove

func RepoRemove(ctx context.Context, name string) (string, error)

func RepoUpdate

func RepoUpdate(ctx context.Context, name string) (string, error)

func UnInstallByManifest

func UnInstallByManifest(ctx context.Context, client client.Client, manifests []string) (err error)

UnInstallByManifest remove a helm chart from the cluster

func UnInstallByResources

func UnInstallByResources(ctx context.Context, c client.Client, ns, planName string, resources []corev1alpha1.Resource) (err error)

UnInstallByResources remove a helm chart from the cluster

Types

type Helm

type Helm struct {
	WorkDir   string
	IsHelmOCI bool
	// contains filtered or unexported fields
}

func NewHelm

func NewHelm(workDir string, isHelmOCI bool) *Helm

func (*Helm) RegistryLogin

func (h *Helm) RegistryLogin() error

RegistryLogin login to a helm registry FIXME this function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL