Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the healthchecking v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=machineremediation.kubevirt.io
Package v1alpha1 contains API Schema definitions for the healthchecking v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=machineremediation.kubevirt.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder contains SchemeBuilder function SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme contains AddToScheme method AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: machineremediation.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type MachineRemediation ¶
type MachineRemediation struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Specification of MachineRemediation Spec MachineRemediationSpec `json:"spec,omitempty"` // Most recently observed status of MachineRemediation resource Status MachineRemediationStatus `json:"status,omitempty"` }
MachineRemediation is the schema for the MachineRemediation API +kubebuilder:subresource:status +kubebuilder:resource:shortName=mr;mrs +k8s:openapi-gen=true
func (*MachineRemediation) DeepCopy ¶
func (in *MachineRemediation) DeepCopy() *MachineRemediation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRemediation.
func (*MachineRemediation) DeepCopyInto ¶
func (in *MachineRemediation) DeepCopyInto(out *MachineRemediation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineRemediation) DeepCopyObject ¶
func (in *MachineRemediation) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineRemediationList ¶
type MachineRemediationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MachineRemediation `json:"items"` }
MachineRemediationList contains a list of MachineRemediation
func (*MachineRemediationList) DeepCopy ¶
func (in *MachineRemediationList) DeepCopy() *MachineRemediationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRemediationList.
func (*MachineRemediationList) DeepCopyInto ¶
func (in *MachineRemediationList) DeepCopyInto(out *MachineRemediationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineRemediationList) DeepCopyObject ¶
func (in *MachineRemediationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineRemediationSpec ¶
type MachineRemediationSpec struct { // Type contains the type of the remediation Type RemediationType `json:"type,omitempty" valid:"required"` // MachineName contains the name of machine that should be remediate MachineName string `json:"machineName,omitempty" valid:"required"` }
MachineRemediationSpec defines the spec of MachineRemediation
func (*MachineRemediationSpec) DeepCopy ¶
func (in *MachineRemediationSpec) DeepCopy() *MachineRemediationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRemediationSpec.
func (*MachineRemediationSpec) DeepCopyInto ¶
func (in *MachineRemediationSpec) DeepCopyInto(out *MachineRemediationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineRemediationStatus ¶
type MachineRemediationStatus struct { State RemediationState `json:"state,omitempty"` Reason string `json:"reason,omitempty"` StartTime *metav1.Time `json:"startTime,omitempty"` EndTime *metav1.Time `json:"endTime,omitempty"` }
MachineRemediationStatus defines the observed status of MachineRemediation
func (*MachineRemediationStatus) DeepCopy ¶
func (in *MachineRemediationStatus) DeepCopy() *MachineRemediationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRemediationStatus.
func (*MachineRemediationStatus) DeepCopyInto ¶
func (in *MachineRemediationStatus) DeepCopyInto(out *MachineRemediationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RemediationState ¶
type RemediationState string
RemediationState contains state of the remediation
const ( // RemediationStateStarted contains remediation state when the machine remediation object was created RemediationStateStarted RemediationState = "Started" // RemediationStatePowerOff contains remediation state when the host power offed by the controller RemediationStatePowerOff RemediationState = "PowerOff" // RemediationStatePowerOn contains remediation state when the host power oned again by the controller RemediationStatePowerOn RemediationState = "PowerOn" // RemediationStateSucceeded contains remediation state when the operation succeeded RemediationStateSucceeded RemediationState = "Succeeded" // RemediationStateFailed contains remediation state when the operation failed RemediationStateFailed RemediationState = "Failed" )
type RemediationType ¶
type RemediationType string
RemediationType contains type of the remediation
const ( // RemediationTypeReboot contains reboot type of the remediation RemediationTypeReboot RemediationType = "reboot" // RemediationTypeRecreate contains re-create type of the remediation RemediationTypeRecreate RemediationType = "recreate" )