helm

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChartsDir = "/tmp/helm-charts"
)

Functions

func AddBasicAuthRepository added in v0.9.0

func AddBasicAuthRepository(name, url, username, password string) error

AddBasicAuthRepository add a repo with basic auth

func GetChartsForRepo added in v0.9.2

func GetChartsForRepo(name string) (*repo.IndexFile, error)

GetChartsForRepo retrieve charts info from a repo cache index Check: can we use the generated time to do compare?

func IsHelmRequestSynced

func IsHelmRequestSynced(hr *v1alpha1.HelmRequest) bool

IsHelmRequestSynced check if a HelmRequest is synced only if hash is equal and not install to all clusters

func RemoveRepository added in v0.9.0

func RemoveRepository(name string) error

RemoveRepository remove a repo from helm

Types

type Deploy added in v0.9.5

type Deploy struct {
	// logger
	Log logr.Logger

	// is this chart has deployed release
	Deployed bool

	// the global cluster info
	InCluster *cluster.Info

	// target cluster info
	Cluster *cluster.Info

	// system namespace for chartrepo
	SystemNamespace string

	// all the charts info
	HelmRequest *v1alpha1.HelmRequest
}

Deploy contains info about one chart deploy

func NewDeploy added in v0.9.5

func NewDeploy() *Deploy

func (*Deploy) Delete added in v0.9.5

func (d *Deploy) Delete() error

Delete delete a Release from a cluster

func (*Deploy) Sync added in v0.9.5

func (d *Deploy) Sync() (*release.Release, error)

Sync = install + upgrade When sync done, add the release note to HelmRequest status inCluster info is used to retrieve config info for valuesFrom

type Downloader added in v0.9.5

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

func NewDownloader added in v0.9.5

func NewDownloader(ns string, cfg *rest.Config, log logr.Logger) *Downloader

type IndexSyncer

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

IndexSyncer sync helm repo index repeatedly

func NewDefaultIndexSyncer

func NewDefaultIndexSyncer() *IndexSyncer

NewDefaultIndexSyncer create a new IndexSyncer

func (*IndexSyncer) Start

func (i *IndexSyncer) Start(stop <-chan struct{}) error

Start will refresh the repo index periodically

type Values

type Values = map[string]interface{}

Values is an alias for map, we cannot use chartutils.Values because the helm code only support map when iterate the map

Jump to

Keyboard shortcuts

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