Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenshiftContextInterface ¶
type OpenshiftContextInterface interface { GetFlavor() OpenshiftFlavor IsOpenshiftCluster() bool IsHypershift() bool OpenshiftBeforeDrainNode(context.Context, *corev1.Node) (bool, error) OpenshiftAfterCompleteDrainNode(context.Context, *corev1.Node) (bool, error) GetNodeMachinePoolName(context.Context, *corev1.Node) (string, error) ChangeMachineConfigPoolPause(context.Context, *mcv1.MachineConfigPool, bool) error }
func New ¶
func New() (OpenshiftContextInterface, error)
type OpenshiftFlavor ¶
type OpenshiftFlavor string
OpenshiftFlavor holds metadata about the type of Openshift environment the operator is in.
const ( // Hypershift flavor of openshift: https://github.com/openshift/hypershift OpenshiftFlavorHypershift OpenshiftFlavor = "hypershift" // OpenshiftFlavorDefault covers all remaining flavors of openshift not explicitly called out above OpenshiftFlavorDefault OpenshiftFlavor = "default" )
Click to show internal directories.
Click to hide internal directories.