Documentation ¶
Index ¶
- func FindStatusCondition(conditions []configv1.ClusterOperatorStatusCondition, ...) *configv1.ClusterOperatorStatusCondition
- func GetStatusDiff(oldStatus configv1.ClusterOperatorStatus, ...) string
- func IsStatusConditionFalse(conditions []configv1.ClusterOperatorStatusCondition, ...) bool
- func IsStatusConditionNotIn(conditions []configv1.ClusterOperatorStatusCondition, ...) bool
- func IsStatusConditionPresentAndEqual(conditions []configv1.ClusterOperatorStatusCondition, ...) bool
- func IsStatusConditionTrue(conditions []configv1.ClusterOperatorStatusCondition, ...) bool
- func RemoveStatusCondition(conditions *[]configv1.ClusterOperatorStatusCondition, ...)
- func SetStatusCondition(conditions *[]configv1.ClusterOperatorStatusCondition, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindStatusCondition ¶
func FindStatusCondition(conditions []configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType) *configv1.ClusterOperatorStatusCondition
FindStatusCondition finds the conditionType in conditions.
func GetStatusDiff ¶
func GetStatusDiff(oldStatus configv1.ClusterOperatorStatus, newStatus configv1.ClusterOperatorStatus) string
GetStatusDiff returns a string representing change in condition status in human readable form.
func IsStatusConditionFalse ¶
func IsStatusConditionFalse(conditions []configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType) bool
IsStatusConditionFalse returns true when the conditionType is present and set to `configv1.ConditionFalse`
func IsStatusConditionNotIn ¶
func IsStatusConditionNotIn(conditions []configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType, status ...configv1.ConditionStatus) bool
IsStatusConditionNotIn returns true when the conditionType does not match the status.
func IsStatusConditionPresentAndEqual ¶
func IsStatusConditionPresentAndEqual(conditions []configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType, status configv1.ConditionStatus) bool
IsStatusConditionPresentAndEqual returns true when conditionType is present and equal to status.
func IsStatusConditionTrue ¶
func IsStatusConditionTrue(conditions []configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType) bool
IsStatusConditionTrue returns true when the conditionType is present and set to `configv1.ConditionTrue`
func RemoveStatusCondition ¶
func RemoveStatusCondition(conditions *[]configv1.ClusterOperatorStatusCondition, conditionType configv1.ClusterStatusConditionType)
RemoveStatusCondition removes the corresponding conditionType from conditions.
func SetStatusCondition ¶
func SetStatusCondition(conditions *[]configv1.ClusterOperatorStatusCondition, newCondition configv1.ClusterOperatorStatusCondition)
SetStatusCondition sets the corresponding condition in conditions to newCondition.
Types ¶
This section is empty.