Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the repairman v1 API group +kubebuilder:object:generate=true +groupName=repairman.k8s.io
Index ¶
- Variables
- type MaintenanceLimit
- type MaintenanceLimitList
- type MaintenanceLimitSpec
- type MaintenanceLimitStatus
- type MaintenancePolicy
- type MaintenanceRequest
- type MaintenanceRequestList
- type MaintenanceRequestSpec
- type MaintenanceRequestStatus
- type MaintenanceSelector
- type MaintenanceSelectorList
- type MaintenanceSelectorSpec
- type MaintenanceSelectorStatus
- type MaintenanceState
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "repairman.k8s.io", Version: "v1"} // 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 MaintenanceLimit ¶
type MaintenanceLimit struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MaintenanceLimitSpec `json:"spec,omitempty"` Status MaintenanceLimitStatus `json:"status,omitempty"` }
MaintenanceLimit is the Schema for the maintenancelimits API +kubebuilder:object:root=true +kubebuilder:resource:path=maintenancelimits,scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Percent",type="integer",format="int32",JSONPath=".spec.limit" +kubebuilder:printcolumn:name="Count",type="integer",format="int32",JSONPath=".status.limit"
func (*MaintenanceLimit) DeepCopy ¶
func (in *MaintenanceLimit) DeepCopy() *MaintenanceLimit
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceLimit.
func (*MaintenanceLimit) DeepCopyInto ¶
func (in *MaintenanceLimit) DeepCopyInto(out *MaintenanceLimit)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MaintenanceLimit) DeepCopyObject ¶
func (in *MaintenanceLimit) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MaintenanceLimitList ¶
type MaintenanceLimitList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MaintenanceLimit `json:"items"` }
MaintenanceLimitList contains a list of MaintenanceLimit
func (*MaintenanceLimitList) DeepCopy ¶
func (in *MaintenanceLimitList) DeepCopy() *MaintenanceLimitList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceLimitList.
func (*MaintenanceLimitList) DeepCopyInto ¶
func (in *MaintenanceLimitList) DeepCopyInto(out *MaintenanceLimitList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MaintenanceLimitList) DeepCopyObject ¶
func (in *MaintenanceLimitList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MaintenanceLimitSpec ¶
type MaintenanceLimitSpec struct { // +kubebuilder:validation:Maximum=100 // +kubebuilder:validation:Minimum=0 Limit uint `json:"limit,omitempty"` Policies []MaintenancePolicy `json:"policies,omitempty"` }
MaintenanceLimitSpec defines the desired state of MaintenanceLimit
func (*MaintenanceLimitSpec) DeepCopy ¶
func (in *MaintenanceLimitSpec) DeepCopy() *MaintenanceLimitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceLimitSpec.
func (*MaintenanceLimitSpec) DeepCopyInto ¶
func (in *MaintenanceLimitSpec) DeepCopyInto(out *MaintenanceLimitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MaintenanceLimitStatus ¶
type MaintenanceLimitStatus struct { // Limit dynamically updated by operator based on current cluster state Limit uint `json:"limit,omitempty"` Unavailable map[string]MaintenancePolicy `json:"unavailable,omitempty"` }
MaintenanceLimitStatus defines the observed state of MaintenanceLimit
func (*MaintenanceLimitStatus) DeepCopy ¶
func (in *MaintenanceLimitStatus) DeepCopy() *MaintenanceLimitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceLimitStatus.
func (*MaintenanceLimitStatus) DeepCopyInto ¶
func (in *MaintenanceLimitStatus) DeepCopyInto(out *MaintenanceLimitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MaintenancePolicy ¶
type MaintenancePolicy string
MaintenancePolicy ...
const ( // None ... None MaintenancePolicy = "None" // NotReady ... NotReady MaintenancePolicy = "NotReady" // Unschedulable ... Unschedulable MaintenancePolicy = "Unschedulable" )
type MaintenanceRequest ¶
type MaintenanceRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MaintenanceRequestSpec `json:"spec,omitempty"` Status MaintenanceRequestStatus `json:"status,omitempty"` }
MaintenanceRequest is the Schema for the maintenancerequests API +kubebuilder:object:root=true +kubebuilder:resource:path=maintenancerequests,scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Name",type="string",format="byte",JSONPath=".spec.name" +kubebuilder:printcolumn:name="Type",type="string",format="byte",JSONPath=".spec.type" +kubebuilder:printcolumn:name="State",type="string",format="byte",JSONPath=".spec.state"
func (*MaintenanceRequest) DeepCopy ¶
func (in *MaintenanceRequest) DeepCopy() *MaintenanceRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceRequest.
func (*MaintenanceRequest) DeepCopyInto ¶
func (in *MaintenanceRequest) DeepCopyInto(out *MaintenanceRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MaintenanceRequest) DeepCopyObject ¶
func (in *MaintenanceRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MaintenanceRequestList ¶
type MaintenanceRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MaintenanceRequest `json:"items"` }
MaintenanceRequestList contains a list of MaintenanceRequest
func (*MaintenanceRequestList) DeepCopy ¶
func (in *MaintenanceRequestList) DeepCopy() *MaintenanceRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceRequestList.
func (*MaintenanceRequestList) DeepCopyInto ¶
func (in *MaintenanceRequestList) DeepCopyInto(out *MaintenanceRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MaintenanceRequestList) DeepCopyObject ¶
func (in *MaintenanceRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MaintenanceRequestSpec ¶
type MaintenanceRequestSpec struct { Name string `json:"name,omitempty"` // +kubebuilder:validation:Enum={Pending,Approved,InProgress,Completed} State MaintenanceState `json:"state,omitempty"` // +kubebuilder:validation:Enum=node Type string `json:"type,omitempty"` }
MaintenanceRequestSpec defines the desired state of MaintenanceRequest
func (*MaintenanceRequestSpec) DeepCopy ¶
func (in *MaintenanceRequestSpec) DeepCopy() *MaintenanceRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceRequestSpec.
func (*MaintenanceRequestSpec) DeepCopyInto ¶
func (in *MaintenanceRequestSpec) DeepCopyInto(out *MaintenanceRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MaintenanceRequestStatus ¶
type MaintenanceRequestStatus struct { }
MaintenanceRequestStatus defines the observed state of MaintenanceRequest
func (*MaintenanceRequestStatus) DeepCopy ¶
func (in *MaintenanceRequestStatus) DeepCopy() *MaintenanceRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceRequestStatus.
func (*MaintenanceRequestStatus) DeepCopyInto ¶
func (in *MaintenanceRequestStatus) DeepCopyInto(out *MaintenanceRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MaintenanceSelector ¶
type MaintenanceSelector struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MaintenanceSelectorSpec `json:"spec,omitempty"` Status MaintenanceSelectorStatus `json:"status,omitempty"` }
MaintenanceSelector is the Schema for the maintenanceselectors API
func (*MaintenanceSelector) DeepCopy ¶
func (in *MaintenanceSelector) DeepCopy() *MaintenanceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceSelector.
func (*MaintenanceSelector) DeepCopyInto ¶
func (in *MaintenanceSelector) DeepCopyInto(out *MaintenanceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MaintenanceSelector) DeepCopyObject ¶
func (in *MaintenanceSelector) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MaintenanceSelectorList ¶
type MaintenanceSelectorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MaintenanceSelector `json:"items"` }
MaintenanceSelectorList contains a list of MaintenanceSelector
func (*MaintenanceSelectorList) DeepCopy ¶
func (in *MaintenanceSelectorList) DeepCopy() *MaintenanceSelectorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceSelectorList.
func (*MaintenanceSelectorList) DeepCopyInto ¶
func (in *MaintenanceSelectorList) DeepCopyInto(out *MaintenanceSelectorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MaintenanceSelectorList) DeepCopyObject ¶
func (in *MaintenanceSelectorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MaintenanceSelectorSpec ¶
type MaintenanceSelectorSpec struct { }
MaintenanceSelectorSpec defines the desired state of MaintenanceSelector
func (*MaintenanceSelectorSpec) DeepCopy ¶
func (in *MaintenanceSelectorSpec) DeepCopy() *MaintenanceSelectorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceSelectorSpec.
func (*MaintenanceSelectorSpec) DeepCopyInto ¶
func (in *MaintenanceSelectorSpec) DeepCopyInto(out *MaintenanceSelectorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MaintenanceSelectorStatus ¶
type MaintenanceSelectorStatus struct { }
MaintenanceSelectorStatus defines the observed state of MaintenanceSelector
func (*MaintenanceSelectorStatus) DeepCopy ¶
func (in *MaintenanceSelectorStatus) DeepCopy() *MaintenanceSelectorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceSelectorStatus.
func (*MaintenanceSelectorStatus) DeepCopyInto ¶
func (in *MaintenanceSelectorStatus) DeepCopyInto(out *MaintenanceSelectorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MaintenanceState ¶
type MaintenanceState string
MaintenanceState defined below
const ( // Pending initial state of maintenance update by actor Pending MaintenanceState = "Pending" // Approved mainteanance request is approved updated by operator Approved MaintenanceState = "Approved" // InProgress mainteanance request is in progress, updated by actor InProgress MaintenanceState = "InProgress" // Completed mainteanance request is completed, updated by actor Completed MaintenanceState = "Completed" )