v1alpha1

package
v0.0.0-...-1ca3fed Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the model v1alpha1 API group +kubebuilder:object:generate=true +groupName=model.youxam.com

Index

Constants

This section is empty.

Variables

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

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

	// +optional
	Spec AIModelSpec `json:"spec,omitempty"`

	// +optional
	Status AIModelStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type",description="Type of the AIModel" +kubebuilder:printcolumn:name="Model",type="string",JSONPath=".spec.model",description="Model of the AIModel" +kubebuilder:printcolumn:name="Replicas",type="integer",JSONPath=".spec.replicas",description="Replicas of the AIModel" +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.state",description="State of the AIModel" AIModel is the Schema for the aimodels API

func (*AIModel) DeepCopy

func (in *AIModel) DeepCopy() *AIModel

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

func (*AIModel) DeepCopyInto

func (in *AIModel) DeepCopyInto(out *AIModel)

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

func (*AIModel) DeepCopyObject

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

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

type AIModelList

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

AIModelList contains a list of AIModel

func (*AIModelList) DeepCopy

func (in *AIModelList) DeepCopy() *AIModelList

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

func (*AIModelList) DeepCopyInto

func (in *AIModelList) DeepCopyInto(out *AIModelList)

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

func (*AIModelList) DeepCopyObject

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

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

type AIModelSpec

type AIModelSpec struct {

	// The Type of the AIModel could be "local" or "remote"
	Type string `json:"type"`

	// Model is the name of the model
	Model string `json:"model"`

	// Replicas is the number of replicas of the model
	// +optional
	Replicas *int32 `json:"replicas,omitempty"`

	// +optional
	BaseURL string `json:"baseURL,omitempty"`
	// +optional
	APIKey string `json:"apiKey,omitempty"`

	// Image is the docker image of the model
	Image string `json:"image"`

	// MaxProcessNum is the maximum number of threads to process the requests
	// +optional
	MaxProcessNum *int32 `json:"maxProcessNum,omitempty"`

	// MsgBacklogThreshold is the threshold of the lag for KEDA
	// +optional
	MsgBacklogThreshold *int32 `json:"msgBacklogThreshold,omitempty"`
}

AIModelSpec defines the desired state of AIModel

func (*AIModelSpec) DeepCopy

func (in *AIModelSpec) DeepCopy() *AIModelSpec

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

func (*AIModelSpec) DeepCopyInto

func (in *AIModelSpec) DeepCopyInto(out *AIModelSpec)

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

type AIModelStatus

type AIModelStatus struct {
	State   string `json:"state,omitempty"`
	Message string `json:"message,omitempty"`
}

AIModelStatus defines the observed state of AIModel

func (*AIModelStatus) DeepCopy

func (in *AIModelStatus) DeepCopy() *AIModelStatus

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

func (*AIModelStatus) DeepCopyInto

func (in *AIModelStatus) DeepCopyInto(out *AIModelStatus)

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