status

package
v0.0.0-...-166901d Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 26 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr, rootCredentialManager manager.Manager, kubeConfig string) error

Add creates a new Status Controller and adds it to the Manager.

func AddHandler

func AddHandler(name string, handler Handler)

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.

Jump to

Keyboard shortcuts

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