helm

package
v2.2.13+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 36 Imported by: 200

Documentation

Index

Constants

View Source
const (
	AppIDsLabel = "cattle.io/appIds"

	MultiClusterAppIDSelector = "mcapp"
)

Variables

This section is empty.

Functions

func Equal

func Equal(existing []string, toUpdate map[string]bool) bool

func GetMsg

func GetMsg(data map[string]bool) string

func Register

func Register(ctx context.Context, user *config.UserContext, kubeConfigGetter common.KubeConfigGetter)

func StartStateCalculator

func StartStateCalculator(ctx context.Context, cluster *config.UserContext)

Types

type AppStateCalculator

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

type Lifecycle

type Lifecycle struct {
	KubeConfigGetter      common.KubeConfigGetter
	SystemAccountManager  *systemaccount.Manager
	UserManager           user.Manager
	TokenClient           mgmtv3.TokenInterface
	UserClient            mgmtv3.UserInterface
	TemplateVersionClient mgmtv3.CatalogTemplateVersionInterface
	TemplateClient        mgmtv3.CatalogTemplateInterface
	CatalogLister         mgmtv3.CatalogLister
	ClusterCatalogLister  mgmtv3.ClusterCatalogLister
	ProjectCatalogLister  mgmtv3.ProjectCatalogLister
	K8sClient             kubernetes.Interface
	ListenConfigClient    mgmtv3.ListenConfigInterface
	ClusterName           string
	AppRevisionGetter     v3.AppRevisionsGetter
	AppGetter             v3.AppsGetter
	NsLister              corev1.NamespaceLister
	NsClient              corev1.NamespaceInterface
}

func (*Lifecycle) Create

func (l *Lifecycle) Create(obj *v3.App) (runtime.Object, error)

func (*Lifecycle) DeployApp

func (l *Lifecycle) DeployApp(obj *v3.App) (*v3.App, error)

func (*Lifecycle) Remove

func (l *Lifecycle) Remove(obj *v3.App) (runtime.Object, error)

func (*Lifecycle) Run

func (l *Lifecycle) Run(obj *v3.App, template, notes string, tempDirs *hCommon.HelmPath) error

func (*Lifecycle) Updated

func (l *Lifecycle) Updated(obj *v3.App) (runtime.Object, error)

Updated depends on several conditions:

AppConditionMigrated: protects upgrade path for apps <2.1
AppConditionInstalled: flips status in UI and drives logic
AppConditionDeployed: flips status in UI
AppConditionForceUpgrade: add destructive `--force` param to helm upgrade when set to Unknown
AppConditionUserTriggeredAction: Indicates when `upgrade` or `rollback` is called by the user

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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