Documentation ¶
Overview ¶
Package conditions provides utilities for manipulating the status conditions of Kubernetes resource objects that implement the Getter and/or Setter interfaces.
Usage of this package within GitOps Toolkit components working with conditions is RECOMMENDED, as it provides a wide range of helpers to work around common reconciler problems, like setting a Condition status based on a summarization of other conditions, producing an aggregate Condition based on the conditions of a list of Kubernetes resources objects, recognition of negative polarity or "abnormal-true" conditions, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns the condition with the given type, if the condition does not exists, it returns nil.
func UnknownCondition ¶
func UnknownCondition(t, reason, messageFormat string, messageArgs ...interface{}) *metav1.Condition
UnknownCondition returns a condition with Status=Unknown and the given type, reason and message.