Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCondition ¶
func SetCondition(conditions *[]metav1.Condition, conditionType ConditionType, status metav1.ConditionStatus, reason ConditionReason)
SetCondition creates a new condition with the given conditionType, status and reason. Then, it sets this new condition, unsetting previous conditions with the same type as necessary.
func SetConditionWithMessage ¶
func SetConditionWithMessage(conditions *[]metav1.Condition, conditionType ConditionType, status metav1.ConditionStatus, reason ConditionReason, message string)
SetConditionWithMessage creates a new condition with the given conditionType, status, reason and message. Then, it sets this new condition, unsetting previous conditions with the same type as necessary.
Types ¶
type ConditionReason ¶
type ConditionReason string
ConditionReason is a string representing a Kubernetes condition reason.
func (ConditionReason) String ¶
func (cr ConditionReason) String() string
type ConditionType ¶
type ConditionType string
ConditionType is a string representing a Kubernetes condition type.
func (ConditionType) String ¶
func (ct ConditionType) String() string
String returns a string representation of the ConditionType.
Click to show internal directories.
Click to hide internal directories.