v1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

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

View Source
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 {
	// +kubebuilder:default:=false
	Enabled bool `json:"enabled"`
	// +kubebuilder:default:="nicolaka/netshoot"
	Image string `json:"image,omitempty"`
	// +kubebuilder:default:="default"
	Namespace string `json:"namespace,omitempty"`
}

Debug defines a debug pod configuration

func (*Debug) DeepCopy

func (in *Debug) DeepCopy() *Debug

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

func (*Debug) DeepCopyInto

func (in *Debug) DeepCopyInto(out *Debug)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Flags added in v0.3.0

type Flags struct {
	IgnoreAllDaemonSets *bool `json:"ignoreAllDaemonSets,omitempty"`
	DisableEviction     *bool `json:"disableEviction,omitempty"`
	DeleteEmptyDirData  *bool `json:"deleteEmptyDirData,omitempty"`
	Force               *bool `json:"force,omitempty"`
	IgnoreErrors        *bool `json:"ignoreErrors,omitempty"`
}

Flag defines flags for draining a node

func (*Flags) DeepCopy added in v0.3.0

func (in *Flags) DeepCopy() *Flags

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

func (*Flags) DeepCopyInto added in v0.3.0

func (in *Flags) DeepCopyInto(out *Flags)

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"`
	Flags     Flags      `json:"flags,omitempty"`
	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

func (in *Node) DeepCopy() *Node

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

func (*Node) DeepCopyInto

func (in *Node) DeepCopyInto(out *Node)

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 {
	Nodes     []Node     `json:"nodes,omitempty"`
	Debug     Debug      `json:"debug,omitempty"`
	Flags     Flags      `json:"flags,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

type QuarantineStatus struct {
	Conditions []metav1.Condition `json:"conditions"`
}

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"`
	// +kubebuilder:default:="debug"
	Name string `json:"name,omitempty"`
	// +kubebuilder:default:="default"
	Namespace string `json:"namespace,omitempty"`
	// +kubebuilder:default:=false
	Keep bool `json:"keep,omitempty"`
}

Resource defines a workload to isolate on a node

func (*Resource) DeepCopy

func (in *Resource) DeepCopy() *Resource

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

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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