conditions

package
v5.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnexpectedConditionStatusError = &microerror.Error{
	Kind: "UnexpectedConditionStatus",
}

Functions

func ExpectedFalseErrorMessage

func ExpectedFalseErrorMessage(cr CR, conditionType capi.ConditionType) string

func ExpectedStatusErrorMessage

func ExpectedStatusErrorMessage(cr CR, conditionType capi.ConditionType, expectedStatus corev1.ConditionStatus) string

func ExpectedTrueErrorMessage

func ExpectedTrueErrorMessage(cr CR, conditionType capi.ConditionType) string

func IsFalse

func IsFalse(condition *capi.Condition) bool

func IsTrue

func IsTrue(condition *capi.Condition) bool

func IsUnexpected

func IsUnexpected(from capiconditions.Getter, t capi.ConditionType) bool

func IsUnexpectedConditionStatus

func IsUnexpectedConditionStatus(err error) bool

IsInvalidCondition asserts invalidConditionError.

func IsUnknown

func IsUnknown(condition *capi.Condition) bool

func IsUpgraded

func IsUpgraded(cr CR, desiredRelease string) (bool, error)

func IsUpgradingFalse

func IsUpgradingFalse(from capiconditions.Getter) bool

func IsUpgradingInProgress

func IsUpgradingInProgress(cr CR, desiredRelease string) (bool, error)

func IsUpgradingTrue

func IsUpgradingTrue(from capiconditions.Getter) bool

func MarkUpgradingCompleted

func MarkUpgradingCompleted(cr CR)

func MarkUpgradingNotStarted

func MarkUpgradingNotStarted(cr CR)

func MarkUpgradingStarted

func MarkUpgradingStarted(cr CR)

func UnexpectedConditionStatusErrorMessage

func UnexpectedConditionStatusErrorMessage(cr CR, t capi.ConditionType) string

Types

type CR

type CR interface {
	key.LabelsGetter
	capiconditions.Setter
}

Jump to

Keyboard shortcuts

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