utils

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// events reasons
	EventReasonBeginMaintenance   = "BeginMaintenance"
	EventReasonFailedMaintenance  = "FailedMaintenance"
	EventReasonSucceedMaintenance = "SucceedMaintenance"
	EventReasonUncordonNode       = "UncordonNode"
	EventReasonRemovedMaintenance = "RemovedMaintenance"

	// events messages
	EventMessageBeginMaintenance   = "Begin a node maintenance"
	EventMessageFailedMaintenance  = "Failed a node maintenance"
	EventMessageSucceedMaintenance = "Node maintenance was succeeded"
	EventMessageUncordonNode       = "Uncordon a node"
	EventMessageRemovedMaintenance = "Removed a node maintenance"
)

Variables

This section is empty.

Functions

func NormalEvent added in v0.18.0

func NormalEvent(recorder record.EventRecorder, object runtime.Object, reason, message string)

NormalEvent will record an event with type Normal and fixed message.

func WarningEvent added in v0.18.0

func WarningEvent(recorder record.EventRecorder, object runtime.Object, reason, message string)

WarningEvent will record an event with type Warning and fixed message.

Types

type OpenshiftValidator

type OpenshiftValidator struct {
	// contains filtered or unexported fields
}

func NewOpenshiftValidator

func NewOpenshiftValidator(config *rest.Config) (*OpenshiftValidator, error)

NewOpenshiftValidator initialization function for OpenshiftValidator

func (*OpenshiftValidator) IsOpenshiftSupported

func (v *OpenshiftValidator) IsOpenshiftSupported() bool

IsOpenshiftSupported returns whether the cluster supports OpenShift

Jump to

Keyboard shortcuts

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