openshift

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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

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"
)

Directories

Path Synopsis
Package mock_openshift is a generated GoMock package.
Package mock_openshift is a generated GoMock package.

Jump to

Keyboard shortcuts

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