chart

package
v0.4.16 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 19 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 GetIngressAddress added in v0.4.14

func GetIngressAddress(ctx context.Context) (string, error)

GetIngressAddress returns the address of the ingress in ReleaseNamespace namespace

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
}

type PodInfo added in v0.4.14

type PodInfo struct {
	Name   string `json:"name"`
	Status string `json:"status"`
	Reason string `json:"reason"`
}

PodInfo represents short information about a pod

func GetNonRuninngPods added in v0.4.14

func GetNonRuninngPods(ctx context.Context) ([]PodInfo, error)

GetNonRuninngPods returns a list of non-running pods in the ReleaseNamespace namespace

Jump to

Keyboard shortcuts

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