Documentation ¶
Index ¶
- func IsOperatorAlwaysManaged() bool
- func IsOperatorManaged(state v1.ManagementState) bool
- func IsOperatorNotRemovable() bool
- func IsOperatorRemovable() bool
- func IsOperatorUnknownState(state v1.ManagementState) bool
- func SetOperatorAlwaysManaged()
- func SetOperatorNotRemovable()
- func SetOperatorRemovable()
- func SetOperatorUnmanageable()
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.