management

package
v0.0.0-...-201d816 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 103

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOperatorAlwaysManaged

func IsOperatorAlwaysManaged() bool

IsOperatorAlwaysManaged means the operator can't be set to unmanaged state.

func IsOperatorManaged

func IsOperatorManaged(state v1.ManagementState) bool

IsOperatorManaged indicates whether the operator management state allows the control loop to proceed and manage the operand.

func IsOperatorNotRemovable

func IsOperatorNotRemovable() bool

IsOperatorNotRemovable means the operator can't be set to removed state.

func IsOperatorRemovable

func IsOperatorRemovable() bool

IsOperatorRemovable means the operator can be set to removed state.

func IsOperatorUnknownState

func IsOperatorUnknownState(state v1.ManagementState) bool

func SetOperatorAlwaysManaged

func SetOperatorAlwaysManaged()

SetOperatorAlwaysManaged is one time choice when an operator want to opt-out from supporting the "unmanaged" state. This is a case of control plane operators or operators that are required to always run otherwise the cluster will get into unstable state or critical components will stop working.

func SetOperatorNotRemovable

func SetOperatorNotRemovable()

SetOperatorNotRemovable is one time choice the operator author can make to indicate the operator does not support removing of his operand. This makes sense for operators like kube-apiserver where removing operand will lead to a bricked, non-automatically recoverable state.

func SetOperatorRemovable

func SetOperatorRemovable()

SetOperatorRemovable is one time choice the operator author can make to indicate the operator supports removing of his operand. This is the default setting, provided here mostly for unit tests.

func SetOperatorUnmanageable

func SetOperatorUnmanageable()

SetOperatorUnmanageable is one time choice when an operator wants to support the "unmanaged" state. This is the default setting, provided here mostly for unit tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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