status

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarkAsStalled

func MarkAsStalled(recorder events.Recorder, obj conditions.Setter, related runtime.Object, reason, msg string)

MarkAsStalled sets the condition status of an Object to `Stalled`.

func MarkNotReady

func MarkNotReady(recorder events.Recorder, obj conditions.Setter, related runtime.Object, reason, msg string)

MarkNotReady sets the condition status of an Object to `Not Ready`.

func MarkReady added in v0.16.1

func MarkReady(recorder events.Recorder, obj conditions.Setter, related runtime.Object, msg string, messageArgs ...any)

MarkReady sets the condition status of an Object to `Ready`.

func UpdateStatus

func UpdateStatus(
	ctx context.Context,
	patchHelper *patch.SerialPatcher,
	obj IdentifiableClientObject,
	recorder events.Recorder,
	requeue time.Duration,
	err error,
) error

UpdateStatus takes an object which can identify itself and updates its status including ObservedGeneration.

Types

type IdentifiableClientObject

type IdentifiableClientObject interface {
	Mutator
	conditions.Setter

	// GetVID constructs an identifier for an object.
	GetVID() map[string]string
}

IdentifiableClientObject defines an object which can create an identity for itself.

type Mutator

type Mutator interface {
	// SetObservedGeneration mutates the observed generation field of an object.
	SetObservedGeneration(v int64)
}

Mutator allows mutating specific status fields of an object.

Jump to

Keyboard shortcuts

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