condition

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConditionTypeProcessing = "Processing"
	ConditionTypeReady      = "Ready"
)

Variables

View Source
var (
	ProcessingCondition = metav1.Condition{
		Type:   ConditionTypeProcessing,
		Status: metav1.ConditionTrue,
	}

	ReadyCondition = metav1.Condition{
		Type:   ConditionTypeReady,
		Status: metav1.ConditionTrue,
	}
)

Functions

func EnsureReady

func EnsureReady(obj types.Object) error

EnsureReady returns an error if the provided obj is not ready The error message is already formatted and should be used as is

func NewBlockedCondition

func NewBlockedCondition(message string) metav1.Condition

func NewDoneProcessingCondition

func NewDoneProcessingCondition(message string) metav1.Condition

func NewNotReadyCondition

func NewNotReadyCondition(reason, message string) metav1.Condition

func NewProcessingCondition

func NewProcessingCondition(reason, message string) metav1.Condition

func NewReadyCondition

func NewReadyCondition(reason, message string) metav1.Condition

func SetToUnknown

func SetToUnknown(condition metav1.Condition) metav1.Condition

Types

This section is empty.

Jump to

Keyboard shortcuts

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