reconcile

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConditionReconciler

type ClusterConditionReconciler interface {
	Reconcile(ctx context.Context, cluster *infrav3.Cluster) error
}

ClusterConditionReconciler is the interface for reconciling cluster conditions

func NewClusterConditionReconciler

func NewClusterConditionReconciler(cs service.ClusterService) ClusterConditionReconciler

NewClusterConditionReconciler returns cluster condition reconciler

type ClusterEventHandler

type ClusterEventHandler interface {
	// ClusterHook should be registred in cluster service to listen on
	// Cluster create/update/delete
	ClusterHook() event.Handler

	// ClusterWorkloadHook should be registered in cluster service to listen on
	// Task/Namespace/Workload ready events
	ClusterWorkloadHook() event.Handler
	// AntiEntropyHook should be used to handle anti entropy for
	// cluster
	AntiEntropyHook() event.Handler

	// Handle runs the placement event handler
	Handle(stop <-chan struct{})
}

ClusterEventHandler is the interface for handling cluster events

func NewClusterEventHandler

NewClusterEventHandler returns new cluster event handler

type ClusterReconciler

type ClusterReconciler interface {
	Reconcile(ctx context.Context, cluster *infrav3.Cluster) error
}

ClusterReconciler reconciles cluster state

func NewClusterReconciler

NewClusterReconciler returns new cluster reconciler

Jump to

Keyboard shortcuts

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