controller

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FINALIZER = "automation.pilot.sap.com/finalizer"
)
View Source
const (
	OPERATOR_ID_ENV_VAR = "OPERATOR_ID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

type ControllerBuilder

type ControllerBuilder struct {
	Controller
}

func CreateControllerBuilder

func CreateControllerBuilder() *ControllerBuilder

func (*ControllerBuilder) Build

func (cb *ControllerBuilder) Build(ctx context.Context, reconciler string) (Controller, error)

func (*ControllerBuilder) For

func (*ControllerBuilder) ManagedBy

func (*ControllerBuilder) WithReconcilicationPeriodInMinutes added in v0.0.1

func (cb *ControllerBuilder) WithReconcilicationPeriodInMinutes(p int32) *ControllerBuilder

type ControllerManager

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

func (*ControllerManager) CreateControllers

func (m *ControllerManager) CreateControllers(ctx context.Context) error

func (*ControllerManager) GetClient

func (m *ControllerManager) GetClient() client.Client

func (*ControllerManager) GetScheme

func (m *ControllerManager) GetScheme() *runtime.Scheme

type ControllerManagerBuilder

type ControllerManagerBuilder struct {
	ControllerManager
}

func CreateManagerBuilder

func CreateManagerBuilder() *ControllerManagerBuilder

func (*ControllerManagerBuilder) Build

func (*ControllerManagerBuilder) WithConfig

func (*ControllerManagerBuilder) WithOptions

func (*ControllerManagerBuilder) WithWatchConfiguration

func (*ControllerManagerBuilder) WithoutLeaderElection

func (cm *ControllerManagerBuilder) WithoutLeaderElection() *ControllerManagerBuilder

type ManagerBuilder

type ManagerBuilder interface {
	WithConfig(config *rest.Config) *ControllerManagerBuilder
	WithOptions(scheme *runtime.Scheme, enableLeaderElection bool) *ControllerManagerBuilder
	WithoutLeaderElection() *ControllerManagerBuilder
	WithWatchConfiguration(wc *pb.UpdateConfigRequestMessage) *ControllerManagerBuilder
	Build() ControllerManager
}

type ManagerEngine

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

func CreateManagerEngine

func CreateManagerEngine(scheme *runtime.Scheme, config *rest.Config) *ManagerEngine

func (*ManagerEngine) ManagerStartedAtLeastOnce

func (e *ManagerEngine) ManagerStartedAtLeastOnce() bool

func (*ManagerEngine) StartManager

func (e *ManagerEngine) StartManager() error

func (*ManagerEngine) StopManager

func (e *ManagerEngine) StopManager()

func (*ManagerEngine) WithContext

func (e *ManagerEngine) WithContext()

func (*ManagerEngine) WithWatchConfiguration

func (e *ManagerEngine) WithWatchConfiguration(wc *pb.UpdateConfigRequestMessage)

type ReconciliationEvent

type ReconciliationEvent struct {
	*pb.ClientMessage_ReconcileEvent
}

type ResourceControllerBuilder

type ResourceControllerBuilder interface {
	For(r *pb.Resource) *ControllerBuilder
	ManagedBy(m *ControllerManager) *ControllerBuilder
	Build() Controller
}

type WatchConfigReconciler

type WatchConfigReconciler struct {
	*dynamic.DynamicClient
	*runtime.Scheme
	// contains filtered or unexported fields
}

func (*WatchConfigReconciler) Reconcile

func (r *WatchConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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