deploy

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 29 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
	// The following fields used for generate Values.
	ValuesContext  map[string]any
	ValuesTemplate string
}

type Deployer

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

func New

func New(restCfg *rest.Config) (*Deployer, error)

func NewWithKubeconfig added in v0.4.1

func NewWithKubeconfig(kubeconfig string) (*Deployer, error)

func (*Deployer) EnsureChart

func (d *Deployer) EnsureChart(app *ChartApp, createNamespace, 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(restCfg *rest.Config, opts Options) (*Helm, error)

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

type Options added in v0.4.1

type Options struct {
	CreateNamespace bool
	Namespace       string
}

Jump to

Keyboard shortcuts

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