v1

package
v0.0.0-...-8a6f205 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the repairman v1 API group +kubebuilder:object:generate=true +groupName=repairman.k8s.io

Index

Constants

This section is empty.

Variables

View Source
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

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

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 nodes filtered by above policies
	Unavailable map[string]MaintenancePolicy `json:"unavailable,omitempty"`
}

MaintenanceLimitStatus defines the observed state of MaintenanceLimit

func (*MaintenanceLimitStatus) DeepCopy

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

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

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

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

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceSelectorStatus.

func (*MaintenanceSelectorStatus) DeepCopyInto

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"
)

Jump to

Keyboard shortcuts

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