v1alpha1

package
v0.0.0-...-d529167 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the tanuu.dev v1alpha1 API group +kubebuilder:object:generate=true +groupName=tanuu.dev

Index

Constants

This section is empty.

Variables

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

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

	Spec   DevenvSpec   `json:"spec,omitempty"`
	Status DevenvStatus `json:"status,omitempty"`
}

Devenv is the Schema for the devenvs API

func (*Devenv) DeepCopy

func (in *Devenv) DeepCopy() *Devenv

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

func (*Devenv) DeepCopyInto

func (in *Devenv) DeepCopyInto(out *Devenv)

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

func (*Devenv) DeepCopyObject

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

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

type DevenvList

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

DevenvList contains a list of Devenv

func (*DevenvList) DeepCopy

func (in *DevenvList) DeepCopy() *DevenvList

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

func (*DevenvList) DeepCopyInto

func (in *DevenvList) DeepCopyInto(out *DevenvList)

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

func (*DevenvList) DeepCopyObject

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

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

type DevenvSize

type DevenvSize string
const (
	SizeSmall  DevenvSize = "small"
	SizeMedium DevenvSize = "medium"
	SizeLarge  DevenvSize = "large"
)

type DevenvSpec

type DevenvSpec struct {

	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Name is immutable"
	Name string `json:"name"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="CloudProvider is immutable"
	CloudProvider string `json:"cloudProvider"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="K8sVersion is immutable"
	K8sVersion string `json:"k8sVersion"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="WorkerSelector is immutable"
	WorkerSelector string `json:"workerSelector,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="CtrlSelector is immutable"
	CtrlSelector string `json:"ctrlSelector,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="StorageSelector is immutable"
	StorageSelector string `json:"storageSelector,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="GpuSelector is immutable"
	GpuSelector string `json:"gpuSelector,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Zone is immutable"
	Zone string `json:"zone,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="TemplateCM is immutable"
	TemplateCM string `json:"templateCM,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ProviderConfig is immutable"
	ProviderConfig string `json:"providerConfig,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="CtrlMachineType is immutable"
	CtrlMachineType string `json:"ctrlMachineType,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="WorkerMachineType is immutable"
	WorkerMachineType string `json:"workerMachineType,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="GpuMachineType is immutable"
	GpuMachineType string `json:"gpuMachineType,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ServiceAccount is immutable"
	ServiceAccount string `json:"serviceAccount,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Subnetwork is immutable"
	Subnetwork string `json:"subnetwork,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Size is immutable"
	Size DevenvSize `json:"size,omitempty"`

	TalosVersion   string `json:"talosVersion"`
	WorkerReplicas int    `json:"workerReplicas"`
	CtrlReplicas   int    `json:"ctrlReplicas,omitempty"`
	GpuReplicas    int    `json:"gpuReplicas"`
}

DevenvSpec defines the desired state of Devenv

func (*DevenvSpec) DeepCopy

func (in *DevenvSpec) DeepCopy() *DevenvSpec

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

func (*DevenvSpec) DeepCopyInto

func (in *DevenvSpec) DeepCopyInto(out *DevenvSpec)

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

type DevenvStatus

type DevenvStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	ControlPlane   []NodeInfo `json:"controlPlane,omitempty"`
	Workers        []NodeInfo `json:"workers,omitempty"`
	Gpus           []NodeInfo `json:"gpus,omitempty"`
	IpAddress      string     `json:"ipAddress,omitempty"`
	CloudProvider  string     `json:"cloudProvider,omitempty"`
	Status         string     `json:"status,omitempty"`
	Kubeconfig     string     `json:"kubeconfig,omitempty"`
	Services       []string   `json:"services,omitempty"`
	WorkerReplicas int        `json:"workerReplicas,omitempty"`
	GpuReplicas    int        `json:"gpuReplicas,omitempty"`
	WorkerSelector string     `json:"workerSelector,omitempty"`
	CtrlSelector   string     `json:"ctrlSelector,omitempty"`
	GpuSelector    string     `json:"gpuSelector,omitempty"`
}

DevenvStatus defines the observed state of Devenv

func (*DevenvStatus) DeepCopy

func (in *DevenvStatus) DeepCopy() *DevenvStatus

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

func (*DevenvStatus) DeepCopyInto

func (in *DevenvStatus) DeepCopyInto(out *DevenvStatus)

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

type NodeInfo

type NodeInfo struct {
	Name      string            `json:"name"`
	UID       string            `json:"uid"`
	CreatedAt string            `json:"createdAt"`
	Labels    map[string]string `json:"labels"`
}

func (*NodeInfo) DeepCopy

func (in *NodeInfo) DeepCopy() *NodeInfo

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

func (*NodeInfo) DeepCopyInto

func (in *NodeInfo) DeepCopyInto(out *NodeInfo)

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