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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.