Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHandler ¶
AddHandler registers a Handler that will be called whenever an update to the ClusterOperator status is needed. Each controller providing their own status calculations should use their unique controller name to register themselves.
Types ¶
type Handler ¶
type Handler interface { GetConditions(logger log.FieldLogger) ([]configv1.ClusterOperatorStatusCondition, error) GetRelatedObjects(logger log.FieldLogger) ([]configv1.ObjectReference, error) Name() string }
Handler produces conditions and related objects to be reflected in the cloud-credential-operator ClusterOperatorStatus
type ReconcileStatus ¶
type ReconcileStatus struct { client.Client Logger log.FieldLogger // contains filtered or unexported fields }
ReconcileStatus reconciles the entire status for this operator.
func (*ReconcileStatus) Reconcile ¶
func (r *ReconcileStatus) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile will ensure the ClusterOperator status conditions are updating by calling to each registered domain-specific status handler. This function will ensure default conditions are set if none of the handlers set a condition.
Click to show internal directories.
Click to hide internal directories.