helm

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the HelmClient with config.HelmRepositoryData

func NewClient

func NewClient(namespace string, helmRepoSecret OciRepositoryConfig, debug bool, debugLog action.DebugLog) (*Client, error)

NewClient create a new instance of the helm client.

func (*Client) InstallOrUpgrade

func (c *Client) InstallOrUpgrade(ctx context.Context, chart *helmclient.ChartSpec) error

InstallOrUpgrade takes a helmChart and applies it.

func (*Client) ListDeployedReleases

func (c *Client) ListDeployedReleases() ([]*release.Release, error)

ListDeployedReleases returns all deployed helm releases

func (*Client) Uninstall

func (c *Client) Uninstall(releaseName string) error

Uninstall removes the helmRelease for the given name

type HelmClient

type HelmClient interface {
	helmclient.Client
}

HelmClient embeds the helmclient.Client interface for usage in this package.

type OciRepositoryConfig added in v0.0.3

type OciRepositoryConfig interface {
	GetOciEndpoint() (string, error)
}

OciRepositoryConfig can get an OCI-Endpoint for a helm-repository.

Jump to

Keyboard shortcuts

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