controller

package
v0.0.0-...-dae06fc Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureFinalizers

func EnsureFinalizers(ctx context.Context, obj client.Object, finalizerName string, fn CheckFunc, cl client.Client, logger logr.Logger, reconcileForUpdate ...bool) (*ctrl.Result, error)

Types

type CheckFunc

type CheckFunc func() (time.Duration, error)

type FuncSignal

type FuncSignal struct {
	CancelCh chan struct{}
	DoneCh   chan struct{}
}

type KubeSyncReconciler

type KubeSyncReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
	Mgr    manager.Manager

	// Map of kubesync name to cancel chans
	CancelMap map[string]*FuncSignal
	// contains filtered or unexported fields
}

KubeSyncReconciler reconciles a KubeSync object

func (*KubeSyncReconciler) Reconcile

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

func (*KubeSyncReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type KubeSyncRequest

type KubeSyncRequest struct {
	Ks *jibutechcomv1.KubeSync
}

type KubeSyncSpecPredicate

type KubeSyncSpecPredicate struct {
	predicatebase.IgnoreAllPredicate
}

func (KubeSyncSpecPredicate) Create

Create responds the Create events on server startup, a real Create event will be ignored.

func (KubeSyncSpecPredicate) Delete

func (KubeSyncSpecPredicate) Update

Update returns true when status is changed.

Jump to

Keyboard shortcuts

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