Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the nodemaintenance v1beta1 API group +kubebuilder:object:generate=true +groupName=nodemaintenance.medik8s.io
Index ¶
Constants ¶
const ( // NodeMaintenanceFinalizer is a finalizer for a NodeMaintenance CR deletion NodeMaintenanceFinalizer string = "foregroundDeleteNodeMaintenance" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "nodemaintenance.medik8s.io", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type MaintenancePhase ¶
type MaintenancePhase string
MaintenancePhase contains the phase of maintenance
const ( // MaintenanceRunning - maintenance has started its proccessing MaintenanceRunning MaintenancePhase = "Running" // MaintenanceSucceeded - maintenance has finished succesfuly, cordoned the node and evicted all pods (that could be evicted) MaintenanceSucceeded MaintenancePhase = "Succeeded" // MaintenanceFailed - maintenance has failed MaintenanceFailed MaintenancePhase = "Failed" )
type NodeMaintenance ¶
type NodeMaintenance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodeMaintenanceSpec `json:"spec,omitempty"` Status NodeMaintenanceStatus `json:"status,omitempty"` }
NodeMaintenance is the Schema for the nodemaintenances API +operator-sdk:csv:customresourcedefinitions:resources={{"NodeMaintenance","v1beta1","nodemaintenances"}}
func (*NodeMaintenance) DeepCopy ¶
func (in *NodeMaintenance) DeepCopy() *NodeMaintenance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMaintenance.
func (*NodeMaintenance) DeepCopyInto ¶
func (in *NodeMaintenance) DeepCopyInto(out *NodeMaintenance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeMaintenance) DeepCopyObject ¶
func (in *NodeMaintenance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeMaintenanceList ¶
type NodeMaintenanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NodeMaintenance `json:"items"` }
NodeMaintenanceList contains a list of NodeMaintenance
func (*NodeMaintenanceList) DeepCopy ¶
func (in *NodeMaintenanceList) DeepCopy() *NodeMaintenanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMaintenanceList.
func (*NodeMaintenanceList) DeepCopyInto ¶
func (in *NodeMaintenanceList) DeepCopyInto(out *NodeMaintenanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeMaintenanceList) DeepCopyObject ¶
func (in *NodeMaintenanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeMaintenanceSpec ¶
type NodeMaintenanceSpec struct { // Node name to apply maintanance on/off //+operator-sdk:csv:customresourcedefinitions:type=spec NodeName string `json:"nodeName"` // Reason for maintanance //+operator-sdk:csv:customresourcedefinitions:type=spec Reason string `json:"reason,omitempty"` }
NodeMaintenanceSpec defines the desired state of NodeMaintenance
func (*NodeMaintenanceSpec) DeepCopy ¶
func (in *NodeMaintenanceSpec) DeepCopy() *NodeMaintenanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMaintenanceSpec.
func (*NodeMaintenanceSpec) DeepCopyInto ¶
func (in *NodeMaintenanceSpec) DeepCopyInto(out *NodeMaintenanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeMaintenanceStatus ¶
type NodeMaintenanceStatus struct { // Phase is the represtation of the maintenance progress (Running,Succeeded,Failed) //+operator-sdk:csv:customresourcedefinitions:type=status Phase MaintenancePhase `json:"phase,omitempty"` // Percentage completion of draining the node //+operator-sdk:csv:customresourcedefinitions:type=status DrainProgress int `json:"drainProgress,omitempty"` // The last time the status has been updated //+operator-sdk:csv:customresourcedefinitions:type=status LastUpdate metav1.Time `json:"lastUpdate,omitempty"` // LastError represents the latest error if any in the latest reconciliation //+operator-sdk:csv:customresourcedefinitions:type=status LastError string `json:"lastError,omitempty"` // PendingPods is a list of pending pods for eviction //+operator-sdk:csv:customresourcedefinitions:type=status PendingPods []string `json:"pendingPods,omitempty"` // TotalPods is the total number of all pods on the node from the start //+operator-sdk:csv:customresourcedefinitions:type=status TotalPods int `json:"totalpods,omitempty"` // EvictionPods is the total number of pods up for eviction from the start //+operator-sdk:csv:customresourcedefinitions:type=status EvictionPods int `json:"evictionPods,omitempty"` // Consecutive number of errors upon obtaining a lease //+operator-sdk:csv:customresourcedefinitions:type=status ErrorOnLeaseCount int `json:"errorOnLeaseCount,omitempty"` }
NodeMaintenanceStatus defines the observed state of NodeMaintenance
func (*NodeMaintenanceStatus) DeepCopy ¶
func (in *NodeMaintenanceStatus) DeepCopy() *NodeMaintenanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMaintenanceStatus.
func (*NodeMaintenanceStatus) DeepCopyInto ¶
func (in *NodeMaintenanceStatus) DeepCopyInto(out *NodeMaintenanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.