Documentation ¶
Index ¶
- func SetFailed(ctx context.Context, recorder record.EventRecorder, obj client.Object, ...) bool
- func SetFailedAndUpdate(ctx context.Context, client client.Client, recorder record.EventRecorder, ...) error
- func SetInitialAndUpdate(ctx context.Context, client client.Client, obj client.Object, ...) error
- func SetReady(ctx context.Context, recorder record.EventRecorder, obj client.Object, ...) bool
- func SetReadyAndUpdate(ctx context.Context, client client.Client, recorder record.EventRecorder, ...) error
- func SetUnknown(ctx context.Context, objConditions *[]metav1.Condition, ...) bool
- func SetUnknownAndUpdate(ctx context.Context, client client.Client, obj client.Object, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFailedAndUpdate ¶
func SetFailedAndUpdate(ctx context.Context, client client.Client, recorder record.EventRecorder, obj client.Object, objConditions *[]metav1.Condition, reason condition.Reason, message string) error
SetFailedAndUpdate sets the Ready condition to Status=False and the Failed condition to Status=True, then updates the resource if the conditions have changed.
func SetInitialAndUpdate ¶
func SetInitialAndUpdate(ctx context.Context, client client.Client, obj client.Object, objConditions *[]metav1.Condition) error
SetInitialAndUpdate initializes the Conditions slice and updates the resource if the conditions slice is nil or empty. Types Ready and Failed are initialized with Status Unknown.
func SetReady ¶
func SetReady(ctx context.Context, recorder record.EventRecorder, obj client.Object, objConditions *[]metav1.Condition, reason condition.Reason, message string) bool
SetReady sets the Ready condition to Status=True and the Failed condition to Status=False.
func SetReadyAndUpdate ¶
func SetUnknown ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.