condition

package
v0.0.0-...-e561cac Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// OperatorConditionName is an environment variable set by OLM identifying the operator's OperatorCondition CR
	OperatorConditionName = "OPERATOR_CONDITION_NAME"
)

Variables

This section is empty.

Functions

func MarkAsBusy

func MarkAsBusy(c client.Client, watchNamespace string, recorder record.EventRecorder, controllerName string) error

MarkAsBusy marks the given conroller as busy and sets the Upgradeable condition to False to prevent operator upgrades by OLM. No-op if operator is not OLM-managed

func MarkAsFree

func MarkAsFree(c client.Client, watchNamespace string, recorder record.EventRecorder, controllerName string) error

MarkAsFree removes the given controller from the set of busy controllers, sets the Upgradeable condition to True to allow OLM to perform operator upgrades. No-op if operator is not OLM-managed

func Validate

func Validate(conditions []meta.Condition, conditionType string, expectedStatus meta.ConditionStatus) bool

Validate checks that the given condition is present and holds the expected status value within the given list

Types

This section is empty.

Jump to

Keyboard shortcuts

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