helm

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBasicAuthRepository added in v0.9.0

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

AddBasicAuthRepository add a repo with basic auth

func Delete

func Delete(hr *v1alpha1.HelmRequest, info *cluster.Info) error

Delete delete a Release from a cluster

func Init

func Init()

Init do a lot of dirty stuff 1. init repo dir 2. update repo index we will mount the repo file from a ConfigMap by default, so this function will do the index update

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

func Sync

func Sync(hr *v1alpha1.HelmRequest, info *cluster.Info) (*release.Release, error)

Sync = install + upgrade When sync done, add the release note to HelmRequest status

Types

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