state

package
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateCondition = "State"
	ReadyCondition = "Ready"
)

Variables

This section is empty.

Functions

func EnsureState

func EnsureState(conditions *[]metav1.Condition, observedGeneration int64, state ResourceState, msg string, status bool)

Types

type ResourceState

type ResourceState string
const (
	StateInitial ResourceState = "Initial"

	StateImportRequested ResourceState = "Importing"
	StateImported        ResourceState = "Imported"

	StateCreating ResourceState = "Creating"
	StateCreated  ResourceState = "Created"

	StateUpdating ResourceState = "Updating"
	StateUpdated  ResourceState = "Updated"

	StateDeletionRequested ResourceState = "DeletionRequested"
	StateDeleting          ResourceState = "Deleting"

	// Note: StateDeleted this is a terminal state.
	// Finalizers will be unset and no state handler will be invoked.
	StateDeleted ResourceState = "Deleted"
)

func GetState

func GetState(conditions []metav1.Condition) ResourceState

Jump to

Keyboard shortcuts

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