Documentation ¶
Index ¶
- func CreateStatusConditionErrored(err error) SyncConfigCondition
- func CreateStatusConditionInvalid(err error) SyncConfigCondition
- func CreateStatusConditionReady(isReady bool) SyncConfigCondition
- type ReconciliationContext
- func (rc *ReconciliationContext) IncrementDeleteCount()
- func (rc *ReconciliationContext) IncrementFailCount()
- func (rc *ReconciliationContext) IncrementSyncCount()
- func (rc *ReconciliationContext) SetStatusCondition(condition SyncConfigCondition)
- func (rc *ReconciliationContext) SetStatusIfExisting(conditionType SyncConfigConditionType, status v1.ConditionStatus)
- type SyncConfigReconciler
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) SetupWithManager ¶
func (r *SyncConfigReconciler) SetupWithManager(mgr ctrl.Manager) error