controllers

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConditionTypeApplied   = "Applied"
	ConditionTypeAvailable = "Available"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyWorkReconciler

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

ApplyWorkReconciler reconciles a Work object

func CreateControllers

func CreateControllers(ctx context.Context, hubCfg, spokeCfg *rest.Config, setupLog logr.Logger, opts ctrl.Options) (manager.Manager, *ApplyWorkReconciler, error)

CreateControllers create the controllers with the supplied config

func NewApplyWorkReconciler

func NewApplyWorkReconciler(hubClient client.Client, spokeDynamicClient dynamic.Interface, spokeClient client.Client,
	restMapper meta.RESTMapper, recorder record.EventRecorder, concurrency int, workNameSpace string) *ApplyWorkReconciler

func (*ApplyWorkReconciler) Join

Join starts to reconcile

func (*ApplyWorkReconciler) Leave

func (r *ApplyWorkReconciler) Leave(ctx context.Context) error

Leave start

func (*ApplyWorkReconciler) Reconcile

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

Reconcile implement the control loop logic for Work object.

func (*ApplyWorkReconciler) SetupWithManager

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

SetupWithManager wires up the controller.

Jump to

Keyboard shortcuts

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