status

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonSuccess       = "ConditionsSuccessful"
	ReasonFailure       = "ConditionsFailed"
	ReadySuccessMessage = "All conditions successful."
)

Variables

View Source
var (
	ManagedResourcesReadyType = api.ConditionType("ManagedResourcesReady")

	ManagedResourcesReadyCondition = api.Condition{
		Type:               ManagedResourcesReadyType,
		Status:             corev1.ConditionTrue,
		LastTransitionTime: metav1.Now(),
		Message:            "All managed resources ready.",
	}
)

Functions

func NewReadyCondition

func NewReadyCondition(observedGeneration int64, conditions ...api.Condition) api.Condition

NewReadyCondition returns an api.Condition of type "Ready" whose value is the conjunction of all provided conditions. Conditions in unknown status will result in a failed Ready condition. ObservedGeneration is the generation of the object when the condition was last observed.

func NewUnreadyCondition

func NewUnreadyCondition(observedGeneration int64) api.Condition

func ResourceReady

func ResourceReady(res api.Conditioned) bool

ResourceReady checks whether an Achilles resource has been successfully processed. It returns true if the resource's "Ready" condition is true and observed generation matches the current generation. The condition reason and message are not compared.

Types

This section is empty.

Jump to

Keyboard shortcuts

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