v1alpha1

package
v0.0.0-...-2864b0a Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	// ResourceCPU CPU, in cores. (500m = .5 cores)
	ResourceCPU ResourceName = "cpu"
	// ResourceMemory Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
	ResourceMemory ResourceName = "memory"
	// FinalizerName is the finalizer for Devbox
	FinalizerName = "devbox.sealos.io/finalizer"
	DevBoxPartOf  = "devbox"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "devbox.sealos.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 CommitHistory

type CommitHistory struct {
	// Image is the image of the commit
	Image string `json:"image"`
	// Time is the time when the commit is created
	Time metav1.Time `json:"time"`
	// Pod is the pod name
	Pod string `json:"pod"`
	// status will be set based on expectedStatus after devbox pod delete or stop. if expectedStatus is still pending, it means the pod is not running successfully, so we need to set it to `failed`
	Status CommitStatus `json:"status"`
	// predicatedStatus default `pending`, will be set to `success` if pod status is running successfully.
	PredicatedStatus CommitStatus `json:"predicatedStatus"`
	// Node is the node name
	Node string `json:"node"`
	// ContainerID is the container id
	ContainerID string `json:"containerID"`
}

func (*CommitHistory) DeepCopy

func (in *CommitHistory) DeepCopy() *CommitHistory

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

func (*CommitHistory) DeepCopyInto

func (in *CommitHistory) DeepCopyInto(out *CommitHistory)

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

type CommitStatus

type CommitStatus string
const (
	CommitStatusSuccess CommitStatus = "Success"
	CommitStatusFailed  CommitStatus = "Failed"
	CommitStatusUnknown CommitStatus = "Unknown"
	CommitStatusPending CommitStatus = "Pending"
)

type Component

type Component struct {
	// +kubebuilder:validation:Required
	Name string `json:"name"`
	// +kubebuilder:validation:Required
	Version string `json:"version"`
}

func (*Component) DeepCopy

func (in *Component) DeepCopy() *Component

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

func (*Component) DeepCopyInto

func (in *Component) DeepCopyInto(out *Component)

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

type Config

type Config struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default=sealos
	User string `json:"user"`

	// +kubebuilder:validation:Required
	Image string `json:"image"`

	// +kubebuilder:validation:Optional
	Labels map[string]string `json:"labels,omitempty"`
	// +kubebuilder:validation:Optional
	Annotations map[string]string `json:"annotations,omitempty"`

	// +kubebuilder:validation:Optional
	Command []string `json:"command,omitempty"`
	// kubebuilder:validation:Optional
	Args []string `json:"args,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:default=/home/sealos/project
	WorkingDir string `json:"workingDir,omitempty"`
	// +kubebuilder:validation:Optional
	Env []corev1.EnvVar `json:"env,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default={/bin/bash,-c}
	ReleaseCommand []string `json:"releaseCommand,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:default={/home/sealos/project/entrypoint.sh}
	ReleaseArgs []string `json:"releaseArgs,omitempty"`

	// TODO: in v1alpha2 api we need fix the port and app port into one field and create a new type for it.
	// +kubebuilder:validation:Optional
	// +kubebuilder:default={{name:"devbox-ssh-port",containerPort:22,protocol:TCP}}
	Ports []corev1.ContainerPort `json:"ports,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:default={{name:"devbox-app-port",port:8080,protocol:TCP}}
	AppPorts []corev1.ServicePort `json:"appPorts,omitempty"`

	// +kubebuilder:validation:Optional
	VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
	// +kubebuilder:validation:Optional
	Volumes []corev1.Volume `json:"volumes,omitempty"`
}

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

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

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

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

type DevBoxRelease

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

	Spec   DevBoxReleaseSpec   `json:"spec,omitempty"`
	Status DevBoxReleaseStatus `json:"status,omitempty"`
}

DevBoxRelease is the Schema for the devboxreleases API

func (*DevBoxRelease) DeepCopy

func (in *DevBoxRelease) DeepCopy() *DevBoxRelease

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

func (*DevBoxRelease) DeepCopyInto

func (in *DevBoxRelease) DeepCopyInto(out *DevBoxRelease)

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

func (*DevBoxRelease) DeepCopyObject

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

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

type DevBoxReleaseList

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

DevBoxReleaseList contains a list of DevBoxRelease

func (*DevBoxReleaseList) DeepCopy

func (in *DevBoxReleaseList) DeepCopy() *DevBoxReleaseList

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

func (*DevBoxReleaseList) DeepCopyInto

func (in *DevBoxReleaseList) DeepCopyInto(out *DevBoxReleaseList)

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

func (*DevBoxReleaseList) DeepCopyObject

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

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

type DevBoxReleaseSpec

type DevBoxReleaseSpec struct {
	// +kubebuilder:validation:Required
	DevboxName string `json:"devboxName"`
	// +kubebuilder:validation:Required
	NewTag string `json:"newTag"`
	// +kubebuilder:validation:Optional
	Notes string `json:"notes,omitempty"`
}

DevBoxReleaseSpec defines the desired state of DevBoxRelease

func (*DevBoxReleaseSpec) DeepCopy

func (in *DevBoxReleaseSpec) DeepCopy() *DevBoxReleaseSpec

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

func (*DevBoxReleaseSpec) DeepCopyInto

func (in *DevBoxReleaseSpec) DeepCopyInto(out *DevBoxReleaseSpec)

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

type DevBoxReleaseStatus

type DevBoxReleaseStatus struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default=Pending
	Phase DevboxReleasePhase `json:"phase"`
	// +kubebuilder:validation:Optional
	OriginalImage string `json:"originalImage"`
}

DevBoxReleaseStatus defines the observed state of DevBoxRelease

func (*DevBoxReleaseStatus) DeepCopy

func (in *DevBoxReleaseStatus) DeepCopy() *DevBoxReleaseStatus

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

func (*DevBoxReleaseStatus) DeepCopyInto

func (in *DevBoxReleaseStatus) DeepCopyInto(out *DevBoxReleaseStatus)

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

type Devbox

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

	Spec   DevboxSpec   `json:"spec,omitempty"`
	Status DevboxStatus `json:"status,omitempty"`
}

Devbox is the Schema for the devboxes API

func (*Devbox) DeepCopy

func (in *Devbox) DeepCopy() *Devbox

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

func (*Devbox) DeepCopyInto

func (in *Devbox) DeepCopyInto(out *Devbox)

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

func (*Devbox) DeepCopyObject

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

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

type DevboxList

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

DevboxList contains a list of Devbox

func (*DevboxList) DeepCopy

func (in *DevboxList) DeepCopy() *DevboxList

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

func (*DevboxList) DeepCopyInto

func (in *DevboxList) DeepCopyInto(out *DevboxList)

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

func (*DevboxList) DeepCopyObject

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

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

type DevboxPhase

type DevboxPhase string
const (
	// DevboxPhaseRunning means Devbox is run and run success
	DevboxPhaseRunning DevboxPhase = "Running"
	// DevboxPhasePending means Devbox is run but not run success
	DevboxPhasePending DevboxPhase = "Pending"
	//DevboxPhaseStopped means Devbox is stop and stopped success
	DevboxPhaseStopped DevboxPhase = "Stopped"
	//DevboxPhaseStopping means Devbox is stopping
	DevboxPhaseStopping DevboxPhase = "Stopping"
	//DevboxPhaseError means Devbox is error
	DevboxPhaseError DevboxPhase = "Error"
	//DevboxPhaseUnknown means Devbox is unknown
	DevboxPhaseUnknown DevboxPhase = "Unknown"
)

type DevboxReleasePhase

type DevboxReleasePhase string
const (
	// DevboxReleasePhaseSuccess means the Devbox has been tagged
	DevboxReleasePhaseSuccess DevboxReleasePhase = "Success"
	// DevboxReleasePhasePending means the Devbox has not been tagged
	DevboxReleasePhasePending DevboxReleasePhase = "Pending"
	// DevboxReleasePhaseFailed means the Devbox has not been tagged
	DevboxReleasePhaseFailed DevboxReleasePhase = "Failed"
)

type DevboxSpec

type DevboxSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=Running;Stopped
	State DevboxState `json:"state"`
	// +kubebuilder:validation:Required
	Resource ResourceList `json:"resource"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default=false
	Squash bool `json:"squash"`

	// +kubebuilder:validation:Required
	RuntimeRef RuntimeRef `json:"runtimeRef"`

	// +kubebuilder:validation:Required
	NetworkSpec NetworkSpec `json:"network,omitempty"`

	// todo add rewrite labels and annotations...
	// +kubebuilder:validation:Optional
	ExtraLabels map[string]string `json:"extraLabels,omitempty"`
	// +kubebuilder:validation:Optional
	ExtraAnnotations map[string]string `json:"extraAnnotations,omitempty"`

	// +kubebuilder:validation:Optional
	Command []string `json:"command,omitempty"`
	// +kubebuilder:validation:Optional
	Args []string `json:"args,omitempty"`
	// +kubebuilder:validation:Optional
	WorkingDir string `json:"workingDir,omitempty"`
	// todo add rewrite env...
	// +kubebuilder:validation:Optional
	ExtraEnvs []corev1.EnvVar `json:"extraEnvs"`

	// todo add rewrite volumes and volume mounts..
	// +kubebuilder:validation:Optional
	ExtraVolumes []corev1.Volume `json:"extraVolumes,omitempty"`
	// +kubebuilder:validation:Optional
	ExtraVolumeMounts []corev1.VolumeMount `json:"extraVolumeMounts,omitempty"`

	// +kubebuilder:validation:Optional
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
	// +kubebuilder:validation:Optional
	Affinity *corev1.Affinity `json:"affinity,omitempty"`
}

DevboxSpec defines the desired state of Devbox

func (*DevboxSpec) DeepCopy

func (in *DevboxSpec) DeepCopy() *DevboxSpec

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

func (*DevboxSpec) DeepCopyInto

func (in *DevboxSpec) DeepCopyInto(out *DevboxSpec)

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

type DevboxState

type DevboxState string
const (
	// DevboxStateRunning means the Devbox is running
	DevboxStateRunning DevboxState = "Running"
	// DevboxStatePending means the Devbox is pending
	DevboxStatePending DevboxState = "Pending"
	// DevboxStateStopped means the Devbox is stopped
	DevboxStateStopped DevboxState = "Stopped"
)

type DevboxStatus

type DevboxStatus struct {
	// +kubebuilder:validation:Optional
	Network NetworkStatus `json:"network"`
	// +kubebuilder:validation:Optional
	CommitHistory []*CommitHistory `json:"commitHistory"`
	// +kubebuilder:validation:Optional
	Phase DevboxPhase `json:"phase"`

	// +kubebuilder:validation:Optional
	State corev1.ContainerState `json:"state"`
	// +kubebuilder:validation:Optional
	LastTerminationState corev1.ContainerState `json:"lastState"`
}

DevboxStatus defines the observed state of Devbox

func (*DevboxStatus) DeepCopy

func (in *DevboxStatus) DeepCopy() *DevboxStatus

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

func (*DevboxStatus) DeepCopyInto

func (in *DevboxStatus) DeepCopyInto(out *DevboxStatus)

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

type NetworkSpec

type NetworkSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=NodePort;Tailnet
	Type NetworkType `json:"type"`
	// +kubebuilder:validation:Optional
	ExtraPorts []corev1.ContainerPort `json:"extraPorts"`
}

func (*NetworkSpec) DeepCopy

func (in *NetworkSpec) DeepCopy() *NetworkSpec

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

func (*NetworkSpec) DeepCopyInto

func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)

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

type NetworkStatus

type NetworkStatus struct {
	// +kubebuilder:default=NodePort
	// +kubebuilder:validation:Enum=NodePort;Tailnet
	Type NetworkType `json:"type"`

	// +kubebuilder:validation:Optional
	NodePort int32 `json:"nodePort"`

	// todo TailNet
	// +kubebuilder:validation:Optional
	TailNet string `json:"tailnet"`
}

func (*NetworkStatus) DeepCopy

func (in *NetworkStatus) DeepCopy() *NetworkStatus

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

func (*NetworkStatus) DeepCopyInto

func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus)

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

type NetworkType

type NetworkType string
const (
	NetworkTypeNodePort NetworkType = "NodePort"
	NetworkTypeTailnet  NetworkType = "Tailnet"
)

type OperationRequest

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

	Spec   OperationRequestSpec   `json:"spec,omitempty"`
	Status OperationRequestStatus `json:"status,omitempty"`
}

OperationRequest is the Schema for the operationrequests API

func (*OperationRequest) DeepCopy

func (in *OperationRequest) DeepCopy() *OperationRequest

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

func (*OperationRequest) DeepCopyInto

func (in *OperationRequest) DeepCopyInto(out *OperationRequest)

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

func (*OperationRequest) DeepCopyObject

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

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

type OperationRequestList

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

OperationRequestList contains a list of OperationRequest

func (*OperationRequestList) DeepCopy

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

func (*OperationRequestList) DeepCopyInto

func (in *OperationRequestList) DeepCopyInto(out *OperationRequestList)

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

func (*OperationRequestList) DeepCopyObject

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

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

type OperationRequestSpec

type OperationRequestSpec struct {
}

OperationRequestSpec defines the desired state of OperationRequest

func (*OperationRequestSpec) DeepCopy

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

func (*OperationRequestSpec) DeepCopyInto

func (in *OperationRequestSpec) DeepCopyInto(out *OperationRequestSpec)

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

type OperationRequestStatus

type OperationRequestStatus struct {
}

OperationRequestStatus defines the observed state of OperationRequest

func (*OperationRequestStatus) DeepCopy

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

func (*OperationRequestStatus) DeepCopyInto

func (in *OperationRequestStatus) DeepCopyInto(out *OperationRequestStatus)

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

type ResourceList

type ResourceList map[ResourceName]resource.Quantity

func (ResourceList) DeepCopy

func (in ResourceList) DeepCopy() ResourceList

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

func (ResourceList) DeepCopyInto

func (in ResourceList) DeepCopyInto(out *ResourceList)

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

type ResourceName

type ResourceName string

type Runtime

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

	Spec   RuntimeSpec   `json:"spec,omitempty"`
	Status RuntimeStatus `json:"status,omitempty"`
}

Runtime is the Schema for the runtimes API

func (*Runtime) DeepCopy

func (in *Runtime) DeepCopy() *Runtime

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

func (*Runtime) DeepCopyInto

func (in *Runtime) DeepCopyInto(out *Runtime)

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

func (*Runtime) DeepCopyObject

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

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

type RuntimeClass

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

	Spec   RuntimeClassSpec   `json:"spec,omitempty"`
	Status RuntimeClassStatus `json:"status,omitempty"`
}

RuntimeClass is the Schema for the runtimeclasses API

func (*RuntimeClass) DeepCopy

func (in *RuntimeClass) DeepCopy() *RuntimeClass

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

func (*RuntimeClass) DeepCopyInto

func (in *RuntimeClass) DeepCopyInto(out *RuntimeClass)

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

func (*RuntimeClass) DeepCopyObject

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

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

type RuntimeClassKind

type RuntimeClassKind string
const (
	RuntimeClassOSKind        RuntimeClassKind = "OS"
	RuntimeClassLanguageKind  RuntimeClassKind = "Language"
	RuntimeClassFrameworkKind RuntimeClassKind = "Framework"
)

type RuntimeClassList

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

RuntimeClassList contains a list of RuntimeClass

func (*RuntimeClassList) DeepCopy

func (in *RuntimeClassList) DeepCopy() *RuntimeClassList

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

func (*RuntimeClassList) DeepCopyInto

func (in *RuntimeClassList) DeepCopyInto(out *RuntimeClassList)

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

func (*RuntimeClassList) DeepCopyObject

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

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

type RuntimeClassSpec

type RuntimeClassSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=OS;Language;Framework
	Kind RuntimeClassKind `json:"kind"`
	// +kubebuilder:validation:Required
	Title string `json:"title"`
	// +kubebuilder:validation:Optional
	Description string `json:"description"`
}

RuntimeClassSpec defines the desired state of RuntimeClass

func (*RuntimeClassSpec) DeepCopy

func (in *RuntimeClassSpec) DeepCopy() *RuntimeClassSpec

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

func (*RuntimeClassSpec) DeepCopyInto

func (in *RuntimeClassSpec) DeepCopyInto(out *RuntimeClassSpec)

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

type RuntimeClassStatus

type RuntimeClassStatus struct {
}

RuntimeClassStatus defines the observed state of RuntimeClass

func (*RuntimeClassStatus) DeepCopy

func (in *RuntimeClassStatus) DeepCopy() *RuntimeClassStatus

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

func (*RuntimeClassStatus) DeepCopyInto

func (in *RuntimeClassStatus) DeepCopyInto(out *RuntimeClassStatus)

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

type RuntimeList

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

RuntimeList contains a list of Runtime

func (*RuntimeList) DeepCopy

func (in *RuntimeList) DeepCopy() *RuntimeList

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

func (*RuntimeList) DeepCopyInto

func (in *RuntimeList) DeepCopyInto(out *RuntimeList)

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

func (*RuntimeList) DeepCopyObject

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

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

type RuntimeRef

type RuntimeRef struct {
	// +kubebuilder:validation:Required
	Name string `json:"name"`
	// +kubebuilder:validation:Optional
	Namespace string `json:"namespace,omitempty"`
}

func (*RuntimeRef) DeepCopy

func (in *RuntimeRef) DeepCopy() *RuntimeRef

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

func (*RuntimeRef) DeepCopyInto

func (in *RuntimeRef) DeepCopyInto(out *RuntimeRef)

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

type RuntimeSpec

type RuntimeSpec struct {
	// +kubebuilder:validation:Required
	ClassRef string `json:"classRef"`
	// +kubebuilder:validation:Required
	Version string `json:"version"`

	// +kubebuilder:validation:Optional
	Components []Component `json:"components,omitempty"`
	// +kubebuilder:validation:Optional
	Category []string `json:"category,omitempty"`
	// +kube:validation:Optional
	Description string `json:"description,omitempty"`

	// +kubebuilder:validation:Required
	Config Config `json:"config"`

	// +kubebuilder:validation:Optional
	RuntimeVersion string `json:"runtimeVersion,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum=active;deprecated
	// +kubebuilder:default=active
	State RuntimeState `json:"state,omitempty"`
}

RuntimeSpec defines the desired state of Runtime

func (*RuntimeSpec) DeepCopy

func (in *RuntimeSpec) DeepCopy() *RuntimeSpec

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

func (*RuntimeSpec) DeepCopyInto

func (in *RuntimeSpec) DeepCopyInto(out *RuntimeSpec)

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

type RuntimeState

type RuntimeState string
const (
	RuntimeStateActive     RuntimeState = "active"
	RuntimeStateDeprecated RuntimeState = "deprecated"
)

type RuntimeStatus

type RuntimeStatus struct {
}

RuntimeStatus defines the observed state of Runtime

func (*RuntimeStatus) DeepCopy

func (in *RuntimeStatus) DeepCopy() *RuntimeStatus

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

func (*RuntimeStatus) DeepCopyInto

func (in *RuntimeStatus) DeepCopyInto(out *RuntimeStatus)

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