chart

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReleaseName      = "wekahome"
	ReleaseNamespace = "home-weka-io"
	RepositoryURL    = "https://weka.github.io/gohome"
	RepositoryName   = "wekahome"
	ChartName        = "wekahome"
)
View Source
const KubeConfigPath = "/etc/rancher/k3s/k3s.yaml"

Variables

View Source
var (
	ErrMalformedConfiguration = fmt.Errorf("logic error, malformed configuration generated")
	ErrGenerationFailed       = fmt.Errorf("failed to generate configuration")
)
View Source
var ErrTimeout = errors.New("timeout")
View Source
var ErrUnableToFindChart = fmt.Errorf("unable to determine chart location")

Functions

func Install

func Install(ctx context.Context, opts *HelmOptions) error

func NewHelmClient

func NewHelmClient(ctx context.Context, opts *HelmOptions) (helmclient.Client, error)

func ReadKubeConfig

func ReadKubeConfig(kubeConfigPath string) ([]byte, error)

ReadKubeConfig reads the kubeconfig from the given path with fallback to ~/.kube/config

func Upgrade

func Upgrade(ctx context.Context, opts *HelmOptions, debug bool) error

Types

type HelmOptions

type HelmOptions struct {
	KubeConfig        []byte                   // path or content of kubeconfig file
	Override          *LocationOverride        // override chart package location
	KubeContext       string                   // kubeconfig context to use
	NamespaceOverride string                   // override namespace for release
	Values            []byte                   // raw values.yaml
	Config            *config_v1.Configuration // json config
}

type LocationOverride

type LocationOverride struct {
	Path           string // path to chart package
	RemoteDownload bool   // download from remote repository
	Version        string // version of the chart to download from remote repository
}

Jump to

Keyboard shortcuts

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