v1alpha1

package
v0.0.0-...-621fc34 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the node v1alpha1 API group +kubebuilder:object:generate=true +groupName=node.kubevirt.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "node.kubevirt.io", 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 SwapStrategy

type SwapStrategy string
const (
	Orthogonal SwapStrategy = "orthogonal"
	AllowSpike SwapStrategy = "allow-spike"
)

type Wasp

type Wasp struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   WaspSpec   `json:"spec,omitempty"`
	Status WaspStatus `json:"status,omitempty"`
}

Wasp is the Schema for the wasps API

func (*Wasp) DeepCopy

func (in *Wasp) DeepCopy() *Wasp

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

func (*Wasp) DeepCopyInto

func (in *Wasp) DeepCopyInto(out *Wasp)

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

func (*Wasp) DeepCopyObject

func (in *Wasp) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WaspCondition

type WaspCondition struct {
	Type   WaspConditionType      `json:"type"`
	Status metav1.ConditionStatus `json:"status"`
	// +optional
	// +nullable
	LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`
	// +optional
	// +nullable
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	Reason             string      `json:"reason,omitempty"`
	Message            string      `json:"message,omitempty"`
}

func (*WaspCondition) DeepCopy

func (in *WaspCondition) DeepCopy() *WaspCondition

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

func (*WaspCondition) DeepCopyInto

func (in *WaspCondition) DeepCopyInto(out *WaspCondition)

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

type WaspConditionType

type WaspConditionType string
const (
	SwapConfigurtaionConditionDeployed         WaspConditionType = "Deployed"
	SwapConfigurtaionConditionDeployInProgress WaspConditionType = "DeployInProgress"
	SwapConfigurtaionConditionFailed           WaspConditionType = "Failed"
)

type WaspList

type WaspList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Wasp `json:"items"`
}

WaspList contains a list of Wasp

func (*WaspList) DeepCopy

func (in *WaspList) DeepCopy() *WaspList

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

func (*WaspList) DeepCopyInto

func (in *WaspList) DeepCopyInto(out *WaspList)

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

func (*WaspList) DeepCopyObject

func (in *WaspList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WaspSpec

type WaspSpec struct {
	// Defines the reclaim strategy with regards to swapping
	Strategy SwapStrategy `json:"strategy,omitempty"`
	// The size of the swap file
	SwapFileSize *resource.Quantity `json:"swapFileSize,omitempty"`
	// The name of the swap file
	SwapFileName string `json:"swapFileName,omitempty"`
	// Path where the swap file should be created
	SwapFilePath string `json:"SwapFilePath,omitempty"`
	// The chroot path of the host root filesystem
	FsRoot string `json:"fsRoot,omitempty"`
	// contains filtered or unexported fields
}

WaspSpec defines the desired state of Wasp

func (*WaspSpec) DeepCopy

func (in *WaspSpec) DeepCopy() *WaspSpec

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

func (*WaspSpec) DeepCopyInto

func (in *WaspSpec) DeepCopyInto(out *WaspSpec)

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

type WaspStatus

type WaspStatus struct {
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Conditions []WaspCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

WaspStatus defines the observed state of Wasp

func (*WaspStatus) DeepCopy

func (in *WaspStatus) DeepCopy() *WaspStatus

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

func (*WaspStatus) DeepCopyInto

func (in *WaspStatus) DeepCopyInto(out *WaspStatus)

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