Documentation ¶
Index ¶
- Constants
- func AddOrReplaceCondition(c metav1.Condition, conditions []metav1.Condition) []metav1.Condition
- func GetCondition(conditionType string, conditions []metav1.Condition) (metav1.Condition, bool)
- func GetKeyLong(obj metav1.Object) string
- func GetKeyShort(obj metav1.Object) string
- func GetLastCondition(conditions []metav1.Condition) (metav1.Condition, bool)
- func IsErrorCondition(condition metav1.Condition) bool
- type ConditionsAware
Constants ¶
View Source
const ReconcileError = "ReconcileError"
View Source
const ReconcileErrorReason = "LastReconcileCycleFailed"
View Source
const ReconcileSuccess = "ReconcileSuccess"
View Source
const ReconcileSuccessReason = "LastReconcileCycleSucceded"
Variables ¶
This section is empty.
Functions ¶
func AddOrReplaceCondition ¶ added in v1.0.0
AddOrReplaceCondition adds or replaces the passed condition in the passed array of conditions
func GetCondition ¶ added in v1.0.1
GetCondition returns the condition with the given type, if it exists. If the condition does not exists it returns false.
func GetKeyLong ¶ added in v0.2.0
GetKeyLong return a unique key for a given object in the pattern of <kind>/<apiversion>/<namespace>/<name> namespace can be null
func GetKeyShort ¶ added in v0.2.0
GetKeyShort return a unique key for a given object in the pattern of <apiversion>/<namespace>/<name> namespace can be null
func GetLastCondition ¶ added in v1.0.1
GetLastCondition retruns the last condition based on the condition timestamp. if no condition is present it return false.
func IsErrorCondition ¶ added in v1.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.