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
Click to show internal directories.
Click to hide internal directories.