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 ¶
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 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.
Click to show internal directories.
Click to hide internal directories.