v1helpers

package
v0.0.0-...-8feeb22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindStatusCondition

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL