Documentation ¶
Index ¶
- Constants
- func NewClusterOperatorStatusCondition(conditionType configv1.ClusterStatusConditionType, ...) configv1.ClusterOperatorStatusCondition
- type ClusterOperatorStatusClient
- func (r *ClusterOperatorStatusClient) GetOrCreateClusterOperator(ctx context.Context) (*configv1.ClusterOperator, error)
- func (r *ClusterOperatorStatusClient) SetStatusAvailable(ctx context.Context, availableConditionMsg string) error
- func (r *ClusterOperatorStatusClient) SetStatusDegraded(ctx context.Context, reconcileErr error) error
- func (r *ClusterOperatorStatusClient) SyncStatus(ctx context.Context, co *configv1.ClusterOperator, ...) error
Constants ¶
View Source
const ( ReasonAsExpected = "AsExpected" ReasonInitializing = "Initializing" ReasonSyncing = "SyncingResources" ReasonSyncFailed = "SyncingFailed" )
Variables ¶
This section is empty.
Functions ¶
func NewClusterOperatorStatusCondition ¶
func NewClusterOperatorStatusCondition(conditionType configv1.ClusterStatusConditionType, conditionStatus configv1.ConditionStatus, reason string, message string) configv1.ClusterOperatorStatusCondition
Types ¶
type ClusterOperatorStatusClient ¶
type ClusterOperatorStatusClient struct { client.Client Recorder record.EventRecorder ManagedNamespace string ReleaseVersion string }
func (*ClusterOperatorStatusClient) GetOrCreateClusterOperator ¶
func (r *ClusterOperatorStatusClient) GetOrCreateClusterOperator(ctx context.Context) (*configv1.ClusterOperator, error)
func (*ClusterOperatorStatusClient) SetStatusAvailable ¶
func (r *ClusterOperatorStatusClient) SetStatusAvailable(ctx context.Context, availableConditionMsg string) error
setStatusAvailable sets the Available condition to True, with the given reason and message, and sets both the Progressing and Degraded conditions to False.
func (*ClusterOperatorStatusClient) SetStatusDegraded ¶
func (r *ClusterOperatorStatusClient) SetStatusDegraded(ctx context.Context, reconcileErr error) error
setStatusDegraded sets the Degraded condition to True, with the given reason and message, and sets the upgradeable condition. It does not modify any existing Available or Progressing conditions.
func (*ClusterOperatorStatusClient) SyncStatus ¶
func (r *ClusterOperatorStatusClient) SyncStatus(ctx context.Context, co *configv1.ClusterOperator, conds []configv1.ClusterOperatorStatusCondition) error
syncStatus applies the new condition to the ClusterOperator object.
Click to show internal directories.
Click to hide internal directories.