helm

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartSpec

type ChartSpec struct {
	RepoName    string
	ReleaseName string
	Namespace   string

	ChartName  string
	Version    string
	ValuesYaml string
}

ChartSpec is subset of type helmclient.ChartSpec(https://pkg.go.dev/github.com/nxtcoder17/go-helm-client#ChartSpec)

type Client

type Client interface {
	AddOrUpdateChartRepo(ctx context.Context, entry RepoEntry) error
	TemplateChart(ctx context.Context, chart *ChartSpec) ([]byte, error)
}

func NewHelmClient

func NewHelmClient(config *rest.Config, opts ClientOptions) (Client, error)

type ClientOptions

type ClientOptions struct {
	// path to the local helm repository cache, which keeps all index.yaml, tar.gz archives
	RepositoryCacheDir string
	// path to the local helm repository config, which is just an index.yaml containing entries for all charts this client has encountered
	RepositoryConfigFile string
}

type RepoEntry

type RepoEntry struct {
	Name string
	URL  string
}

RepoEntry is subset of type [type](https://pkg.go.dev/helm.sh/helm/v3/pkg/repo#Entry)

Jump to

Keyboard shortcuts

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