types

package
v0.0.0-...-f261bc2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: AGPL-3.0, Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	SetupWithManager(manager ctrl.Manager) error
}

Controller is a simple interface that unifies the way of initializing reconcilers with ctrl.Manager.

type Reconciler

type Reconciler string

Reconciler is a name of reconciler supported by this controller.

const (
	GitRepositoryReconciler         Reconciler = "gitrepository"
	HelmRepositoryReconciler        Reconciler = "helmrepository"
	ServiceDeploymentReconciler     Reconciler = "servicedeployment"
	ClusterReconciler               Reconciler = "cluster"
	ClusterRestoreReconciler        Reconciler = "clusterrestore"
	ProviderReconciler              Reconciler = "provider"
	GlobalServiceReconciler         Reconciler = "globalservice"
	PipelineReconciler              Reconciler = "pipeline"
	ScmConnectionReconciler         Reconciler = "scmconnection"
	ServiceAccountReconciler        Reconciler = "serviceaccount"
	PrAutomationReconciler          Reconciler = "prautomation"
	PipelineContextReconciler       Reconciler = "pipelinecontext"
	ClusterRestoreTriggerReconciler Reconciler = "restoretrigger"
	PrAutomationTriggerReconciler   Reconciler = "prautomationtrigger"
	NotificationSinkReconciler      Reconciler = "notificationsink"
	NotificationRouterReconciler    Reconciler = "notificationrouter"
	ManagedNamespaceReconciler      Reconciler = "managednamespace"
	StackReconciler                 Reconciler = "stack"
	StackDefinitionReconciler       Reconciler = "stackdefinition"
	CustomStackRunReconciler        Reconciler = "customstackrun"
	DeploymentSettingsReconciler    Reconciler = "deploymentsettings"
	ProjectReconciler               Reconciler = "project"
	NamespaceCredentialsReconciler  Reconciler = "namespacecredentials"
	ObservabilityProviderReconciler Reconciler = "observabilityprovider"
	ObserverReconciler              Reconciler = "observerprovider"
)

func ToReconciler

func ToReconciler(reconciler string) (Reconciler, error)

ToReconciler maps reconciler string to a Reconciler type.

func (Reconciler) ToController

func (sc Reconciler) ToController(mgr ctrl.Manager, consoleClient client.ConsoleClient,
	userGroupCache cache.UserGroupCache, credentialsCache credentials.NamespaceCredentialsCache) (Controller, error)

ToController creates Controller instance based on this Reconciler.

type ReconcilerList

type ReconcilerList []Reconciler

ReconcilerList is a wrapper around Reconciler array type to allow defining custom functions.

func Reconcilers

func Reconcilers() ReconcilerList

Reconcilers defines a list of reconcilers that will be started by default if '--reconcilers=...' flag is not provided.

func (ReconcilerList) ToControllers

func (rl ReconcilerList) ToControllers(mgr ctrl.Manager, url, token string,
	userGroupCache cache.UserGroupCache, credentialsCache credentials.NamespaceCredentialsCache) ([]Controller, error)

ToControllers returns a list of Controller instances based on this Reconciler array.

Jump to

Keyboard shortcuts

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