deployer

package
v0.3.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePrometheus        = "walrus-prometheus"
	NameOpencost          = "walrus-opencost"
	NameKubeStateMetrics  = "walrus-prometheus-kube-state-metrics"
	NamePrometheusServer  = "walrus-prometheus-server"
	ConfigMapNameOpencost = "walrus-opencost"
)

Variables

This section is empty.

Functions

func CostToolsStatus

func CostToolsStatus(ctx context.Context, conn *model.Connector) error

func DeployCostTools

func DeployCostTools(ctx context.Context, conn *model.Connector, replace bool) error

func UpdateCustomPricing

func UpdateCustomPricing(ctx context.Context, conn *model.Connector) error

Types

type ChartApp

type ChartApp struct {
	Name         string
	Namespace    string
	ChartTgzName string
	Values       map[string]any
	Entry        *repo.Entry
}

type Deployer

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

func New

func New(kubeCfg string) (*Deployer, error)

func (*Deployer) EnsureChart

func (d *Deployer) EnsureChart(app *ChartApp, replace bool) error

func (*Deployer) EnsureYaml

func (d *Deployer) EnsureYaml(ctx context.Context, yamlContent []byte) error

type Helm

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

func NewHelm

func NewHelm(namespace, kubeconfig string) (*Helm, error)

func (*Helm) ChartCacheDir

func (h *Helm) ChartCacheDir() string

func (*Helm) Clean

func (h *Helm) Clean()

func (*Helm) Download

func (h *Helm) Download(repoURL, chartName string) (string, error)

func (*Helm) GetRelease

func (h *Helm) GetRelease(name string) (*release.Release, error)

func (*Helm) Install

func (h *Helm) Install(name, chartPath string, values map[string]any) error

func (*Helm) Uninstall

func (h *Helm) Uninstall(name string) error

Jump to

Keyboard shortcuts

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