status

package
v0.25.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarkAsStalled

func MarkAsStalled(recorder kuberecorder.EventRecorder, obj conditions.Setter, reason, msg string)

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

func MarkNotReady

func MarkNotReady(recorder kuberecorder.EventRecorder, obj conditions.Setter, reason, msg string)

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

func MarkReady added in v0.16.1

func MarkReady(recorder kuberecorder.EventRecorder, obj conditions.Setter, 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 kuberecorder.EventRecorder,
	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