controllers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogSourceReconciler

type CatalogSourceReconciler struct {
	sync.RWMutex
	client.Client
	// contains filtered or unexported fields
}

func NewCatalogSourceReconciler

func NewCatalogSourceReconciler(client client.Client, scheme *runtime.Scheme, recorder record.EventRecorder, options ...CatalogSourceReconcilerOption) *CatalogSourceReconciler

func (*CatalogSourceReconciler) Filter

func (*CatalogSourceReconciler) Get

func (*CatalogSourceReconciler) GroupBy

func (*CatalogSourceReconciler) Iterate

func (*CatalogSourceReconciler) Reconcile

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

func (*CatalogSourceReconciler) SetupWithManager

func (r *CatalogSourceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CatalogSourceReconcilerOption

type CatalogSourceReconcilerOption func(reconciler *CatalogSourceReconciler)

func WithUnmanagedCatalogSourceSyncInterval

func WithUnmanagedCatalogSourceSyncInterval(interval time.Duration) CatalogSourceReconcilerOption

type OperatorReconciler

type OperatorReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Resolver *resolution.OperatorResolver
}

OperatorReconciler reconciles a Operator object

func (*OperatorReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Operator object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.1/pkg/reconcile

func (*OperatorReconciler) SetupWithManager

func (r *OperatorReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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