deploy

package
v0.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartApp

type ChartApp struct {
	Name      string
	Namespace string
	ChartPath string
	ChartURL  string
	Values    map[string]any
}

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) Clean

func (h *Helm) Clean()

func (*Helm) Download

func (h *Helm) Download(chartURL, dest 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