Documentation ¶
Index ¶
- Constants
- Variables
- func Install(ctx context.Context, opts *HelmOptions) error
- func NewHelmClient(ctx context.Context, opts *HelmOptions) (helmclient.Client, error)
- func ReadKubeConfig(kubeConfigPath string) ([]byte, error)
- func Upgrade(ctx context.Context, opts *HelmOptions, debug bool) error
- type HelmOptions
- type LocationOverride
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 NewHelmClient ¶
func NewHelmClient(ctx context.Context, opts *HelmOptions) (helmclient.Client, error)
func ReadKubeConfig ¶
ReadKubeConfig reads the kubeconfig from the given path with fallback to ~/.kube/config
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.