types

package
v0.0.0-...-017442d Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: AGPL-3.0, Apache-2.0, MIT Imports: 4 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"
	ServiceDeploymentReconciler     Reconciler = "servicedeployment"
	ClusterReconciler               Reconciler = "cluster"
	ClusterRestoreReconciler        Reconciler = "clusterrestore"
	ProviderReconciler              Reconciler = "provider"
	GlobalServiceReconciler         Reconciler = "globalservice"
	PipelineReconciler              Reconciler = "pipeline"
	ScmConnectionReconciler         Reconciler = "scmconnection"
	PrAutomationReconciler          Reconciler = "prautomation"
	PipelineContextReconciler       Reconciler = "pipelinecontext"
	ClusterRestoreTriggerReconciler Reconciler = "restoretrigger"
	PrAutomationTriggerReconciler   Reconciler = "prautomationtrigger"
	NotificationSinkReconciler      Reconciler = "notificationsink"
	NotificationRouterReconciler    Reconciler = "notificationrouter"
	ManagedNamespaceReconciler      Reconciler = "managednamespace"
	StackReconciler                 Reconciler = "stack"
)

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) (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, consoleClient client.ConsoleClient) ([]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