controllers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStatusConditionErrored added in v0.3.0

func CreateStatusConditionErrored(err error) SyncConfigCondition

CreateStatusConditionErrored is a shortcut for adding a SyncConfigErrored condition with the given error message.

func CreateStatusConditionInvalid added in v0.3.0

func CreateStatusConditionInvalid(err error) SyncConfigCondition

CreateStatusConditionInvalid is a shortcut for adding a SyncConfigInvalid condition with the given error message.

func CreateStatusConditionReady added in v0.3.0

func CreateStatusConditionReady(isReady bool) SyncConfigCondition

CreateStatusConditionReady is a shortcut for adding a SyncConfigReady condition.

Types

type ReconciliationContext

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

ReconciliationContext holds the parameters of a single SyncConfig reconciliation

func (*ReconciliationContext) IncrementDeleteCount added in v0.3.0

func (rc *ReconciliationContext) IncrementDeleteCount()

func (*ReconciliationContext) IncrementFailCount added in v0.3.0

func (rc *ReconciliationContext) IncrementFailCount()

func (*ReconciliationContext) IncrementSyncCount added in v0.3.0

func (rc *ReconciliationContext) IncrementSyncCount()

func (*ReconciliationContext) SetStatusCondition added in v0.3.0

func (rc *ReconciliationContext) SetStatusCondition(condition SyncConfigCondition)

SetStatusCondition adds the given condition to the status condition of the SyncConfig. Overwrites existing conditions of the same type.

func (*ReconciliationContext) SetStatusIfExisting added in v0.3.1

func (rc *ReconciliationContext) SetStatusIfExisting(conditionType SyncConfigConditionType, status v1.ConditionStatus)

SetStatusIfExisting sets the condition of the given type to the given status, if the condition already exists, otherwise noop

type SyncConfigReconciler

type SyncConfigReconciler struct {
	Client            client.Client
	Log               logr.Logger
	Scheme            *runtime.Scheme
	ReconcileInterval time.Duration
	WatchNamespace    string
}

SyncConfigReconciler reconciles SyncConfig objects

func (*SyncConfigReconciler) Map added in v0.2.0

func (r *SyncConfigReconciler) Map(object handler.MapObject) (reqs []reconcile.Request)

Map transforms the watched objects into a list of SyncConfig to enqueue for later reconciliation.

func (*SyncConfigReconciler) Reconcile

func (r *SyncConfigReconciler) Reconcile(req ctrl.Request) (result ctrl.Result, returnErr error)

func (*SyncConfigReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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