Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the ops v1alpha1 API group +kubebuilder:object:generate=true +groupName=ops.soer3n.info
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "ops.soer3n.info", Version: "v1alpha1"} // 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 Debug ¶
type Debug struct { Enabled bool `json:"enabled"` Image string `json:"image,omitempty"` Namespace string `json:"namespace,omitempty"` }
Debug defines a debug pod configuration
func (*Debug) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Debug.
func (*Debug) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Node ¶
type Node struct { Name string `json:"name"` Isolate bool `json:"isolate,omitempty"` Rescale bool `json:"rescale,omitempty"` Resources []Resource `json:"resources,omitempty"` }
Node defines a configuration for node to isolate
func (*Node) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.
func (*Node) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Quarantine ¶
type Quarantine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec QuarantineSpec `json:"spec,omitempty"` Status QuarantineStatus `json:"status,omitempty"` }
Quarantine is the Schema for the quarantines API
func (*Quarantine) DeepCopy ¶
func (in *Quarantine) DeepCopy() *Quarantine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Quarantine.
func (*Quarantine) DeepCopyInto ¶
func (in *Quarantine) DeepCopyInto(out *Quarantine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Quarantine) DeepCopyObject ¶
func (in *Quarantine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QuarantineList ¶
type QuarantineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Quarantine `json:"items"` }
QuarantineList contains a list of Quarantine
func (*QuarantineList) DeepCopy ¶
func (in *QuarantineList) DeepCopy() *QuarantineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuarantineList.
func (*QuarantineList) DeepCopyInto ¶
func (in *QuarantineList) DeepCopyInto(out *QuarantineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QuarantineList) DeepCopyObject ¶
func (in *QuarantineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QuarantineSpec ¶
type QuarantineSpec struct { // Foo is an example field of Quarantine. Edit quarantine_types.go to remove/update Nodes []Node `json:"nodes,omitempty"` Debug Debug `json:"debug,omitempty"` Resources []Resource `json:"resources"` }
QuarantineSpec defines the desired state of Quarantine
func (*QuarantineSpec) DeepCopy ¶
func (in *QuarantineSpec) DeepCopy() *QuarantineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuarantineSpec.
func (*QuarantineSpec) DeepCopyInto ¶
func (in *QuarantineSpec) DeepCopyInto(out *QuarantineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QuarantineStatus ¶
QuarantineStatus defines the observed state of Quarantine
func (*QuarantineStatus) DeepCopy ¶
func (in *QuarantineStatus) DeepCopy() *QuarantineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuarantineStatus.
func (*QuarantineStatus) DeepCopyInto ¶
func (in *QuarantineStatus) DeepCopyInto(out *QuarantineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Resource ¶
type Resource struct { Type string `json:"type,omitempty"` Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` Keep bool `json:"keep,omitempty"` }
Resource defines a workload to isolate on a node
func (*Resource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
func (*Resource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.