Documentation
¶
Index ¶
- Constants
- func Equal(existing []string, toUpdate map[string]bool) bool
- func GetMsg(data map[string]bool) string
- func Register(ctx context.Context, user *config.UserContext, ...)
- func StartStateCalculator(ctx context.Context, cluster *config.UserContext)
- type AppStateCalculator
- type Lifecycle
- func (l *Lifecycle) Create(obj *v3.App) (runtime.Object, error)
- func (l *Lifecycle) DeployApp(obj *v3.App) (*v3.App, error)
- func (l *Lifecycle) Remove(obj *v3.App) (runtime.Object, error)
- func (l *Lifecycle) Run(obj *v3.App, template, notes string, tempDirs *hCommon.HelmPath) error
- func (l *Lifecycle) Updated(obj *v3.App) (runtime.Object, error)
Constants ¶
View Source
const (
AppIDsLabel = "cattle.io/appIds"
MultiClusterAppIDSelector = "mcapp"
)
Variables ¶
This section is empty.
Functions ¶
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) 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
Click to show internal directories.
Click to hide internal directories.