Documentation ¶
Overview ¶
+kubebuilder:validation:Optional
Package v1beta1 contains API Schema definitions for the opni.io v1beta1 API group +kubebuilder:object:generate=true +groupName=opni.io
+kubebuilder:validation:Optional
+kubebuilder:validation:Optional
Index ¶
- Variables
- type AKSSpec
- type AuthStatus
- type ContainerEngine
- type ContainerRuntime
- type ContainerSource
- type DrainServiceSpec
- type EKSSpec
- type ElasticRole
- type ElasticSpec
- type ElasticWorkloadOptions
- type ElasticWorkloadSpec
- type ExternalSpec
- type FluentConfigSpec
- type GKESpec
- type GPUControllerServiceSpec
- type GpuPolicyAdapter
- type GpuPolicyAdapterList
- type GpuPolicyAdapterSpec
- type GpuPolicyAdapterStatus
- type HTTPSource
- type ImageResolver
- type ImageSpec
- type ImagesSpec
- type InferenceServiceSpec
- type InsightsServiceSpec
- type InternalSpec
- type K3SSpec
- type LogAdapter
- func (in *LogAdapter) DeepCopy() *LogAdapter
- func (in *LogAdapter) DeepCopyInto(out *LogAdapter)
- func (in *LogAdapter) DeepCopyObject() runtime.Object
- func (r *LogAdapter) Default()
- func (r *LogAdapter) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *LogAdapter) ValidateCreate() error
- func (r *LogAdapter) ValidateDelete() error
- func (r *LogAdapter) ValidateUpdate(old runtime.Object) error
- type LogAdapterList
- type LogAdapterSpec
- type LogAdapterStatus
- type LogLevel
- type LogProvider
- type MetricsServiceSpec
- type ModelSource
- type NatsAuthMethod
- type NatsSpec
- type OpniCluster
- type OpniClusterList
- type OpniClusterNameSpec
- type OpniClusterSpec
- type OpniClusterState
- type OpniClusterStatus
- type PayloadReceiverServiceSpec
- type PersistenceSpec
- type PreprocessingServiceSpec
- type PretrainedModel
- type PretrainedModelList
- type PretrainedModelSpec
- type PretrainedModelStatus
- type RKE2Spec
- type RKESpec
- type S3Spec
- type ServiceKind
- func (s ServiceKind) GetImageSpec(opniCluster *OpniCluster) *ImageSpec
- func (s ServiceKind) GetNodeSelector(opniCluster *OpniCluster) map[string]string
- func (s ServiceKind) GetTolerations(opniCluster *OpniCluster) []corev1.Toleration
- func (s ServiceKind) ImageName() string
- func (s ServiceKind) ServiceName() string
- func (s ServiceKind) String() string
- type ServicesSpec
- type UIServiceSpec
- type VGPUSpec
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "opni.io", Version: "v1beta1"} // 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 )
var ( DefaultFluentbitImage = loggingv1beta1.ImageSpec{ Repository: "rancher/mirrored-fluent-fluent-bit", Tag: "1.7.4", } DefaultFluentdImage = loggingv1beta1.ImageSpec{ Repository: "rancher/mirrored-banzaicloud-fluentd", Tag: "v1.11.5-alpine-21", } DefaultConfigReloaderImage = loggingv1beta1.ImageSpec{ Repository: "rancher/mirrored-jimmidyson-configmap-reload", Tag: "v0.4.0", } DefaultContainerLogDir = "/var/lib/docker/containers" DefaultLivenessProbe = corev1.Probe{ InitialDelaySeconds: 30, PeriodSeconds: 15, Handler: corev1.Handler{ TCPSocket: &corev1.TCPSocketAction{ Port: intstr.FromInt(24240), }, }, } )
Functions ¶
This section is empty.
Types ¶
type AKSSpec ¶ added in v0.2.0
type AKSSpec struct { }
func (*AKSSpec) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AKSSpec.
func (*AKSSpec) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthStatus ¶ added in v0.2.0
type AuthStatus struct { NKeyUser string `json:"nKeyUser,omitempty"` NatsAuthSecretKeyRef *corev1.SecretKeySelector `json:"natsAuthSecretKeyRef,omitempty"` GenerateElasticsearchHash *bool `json:"generateElasticsearchHash"` ElasticsearchAuthSecretKeyRef *corev1.SecretKeySelector `json:"elasticsearchAuthSecretKeyRef,omitempty"` S3Endpoint string `json:"s3Endpoint,omitempty"` S3AccessKey *corev1.SecretKeySelector `json:"s3AccessKey,omitempty"` S3SecretKey *corev1.SecretKeySelector `json:"s3SecretKey,omitempty"` }
func (*AuthStatus) DeepCopy ¶ added in v0.2.0
func (in *AuthStatus) DeepCopy() *AuthStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthStatus.
func (*AuthStatus) DeepCopyInto ¶ added in v0.2.0
func (in *AuthStatus) DeepCopyInto(out *AuthStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerEngine ¶ added in v0.2.0
type ContainerEngine string
const ( ContainerEngineSystemd ContainerEngine = "systemd" ContainerEngineOpenRC ContainerEngine = "openrc" )
type ContainerRuntime ¶ added in v0.2.0
type ContainerRuntime string
const ( // Auto will detect the container runtime based on the Kubernetes provider // in use. Containerd is the default, unless the cluster is using RKE. Auto ContainerRuntime = "auto" Docker ContainerRuntime = "docker" Containerd ContainerRuntime = "containerd" Crio ContainerRuntime = "crio" )
type ContainerSource ¶ added in v0.2.0
type ContainerSource struct { // +kubebuilder:validation:Required Image string `json:"image"` // +optional ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` }
func (*ContainerSource) DeepCopy ¶ added in v0.2.0
func (in *ContainerSource) DeepCopy() *ContainerSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerSource.
func (*ContainerSource) DeepCopyInto ¶ added in v0.2.0
func (in *ContainerSource) DeepCopyInto(out *ContainerSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrainServiceSpec ¶
type DrainServiceSpec struct { ImageSpec `json:",inline,omitempty"` Enabled *bool `json:"enabled,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
func (*DrainServiceSpec) DeepCopy ¶
func (in *DrainServiceSpec) DeepCopy() *DrainServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrainServiceSpec.
func (*DrainServiceSpec) DeepCopyInto ¶
func (in *DrainServiceSpec) DeepCopyInto(out *DrainServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EKSSpec ¶ added in v0.2.0
type EKSSpec struct { }
func (*EKSSpec) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EKSSpec.
func (*EKSSpec) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ElasticRole ¶ added in v0.2.0
type ElasticRole string
const ( ElasticDataRole ElasticRole = "data" ElasticClientRole ElasticRole = "client" ElasticMasterRole ElasticRole = "master" ElasticKibanaRole ElasticRole = "kibana" )
func (ElasticRole) GetNodeSelector ¶ added in v0.2.0
func (e ElasticRole) GetNodeSelector(opniCluster *OpniCluster) map[string]string
func (ElasticRole) GetTolerations ¶ added in v0.2.0
func (e ElasticRole) GetTolerations(opniCluster *OpniCluster) []corev1.Toleration
type ElasticSpec ¶
type ElasticSpec struct { Version string `json:"version"` Workloads ElasticWorkloadSpec `json:"workloads,omitempty"` DefaultRepo *string `json:"defaultRepo,omitempty"` Image *ImageSpec `json:"image,omitempty"` KibanaImage *ImageSpec `json:"kibanaImage,omitempty"` Persistence *PersistenceSpec `json:"persistence,omitempty"` // Secret containing an item "logging.yml" with the contents of the // elasticsearch logging config. ConfigSecret *corev1.LocalObjectReference `json:"configSecret,omitempty"` // Reference to a secret containing the desired admin password AdminPasswordFrom *corev1.SecretKeySelector `json:"adminPasswordFrom,omitempty"` }
func (*ElasticSpec) DeepCopy ¶
func (in *ElasticSpec) DeepCopy() *ElasticSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticSpec.
func (*ElasticSpec) DeepCopyInto ¶
func (in *ElasticSpec) DeepCopyInto(out *ElasticSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ElasticWorkloadOptions ¶ added in v0.2.0
type ElasticWorkloadOptions struct { Replicas *int32 `json:"replicas,omitempty"` Resources *corev1.ResourceRequirements `json:"resources,omitempty"` Affinity *corev1.Affinity `json:"affinity,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
func (*ElasticWorkloadOptions) DeepCopy ¶ added in v0.2.0
func (in *ElasticWorkloadOptions) DeepCopy() *ElasticWorkloadOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticWorkloadOptions.
func (*ElasticWorkloadOptions) DeepCopyInto ¶ added in v0.2.0
func (in *ElasticWorkloadOptions) DeepCopyInto(out *ElasticWorkloadOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ElasticWorkloadSpec ¶ added in v0.2.0
type ElasticWorkloadSpec struct { Master ElasticWorkloadOptions `json:"master,omitempty"` Data ElasticWorkloadOptions `json:"data,omitempty"` Client ElasticWorkloadOptions `json:"client,omitempty"` Kibana ElasticWorkloadOptions `json:"kibana,omitempty"` }
func (*ElasticWorkloadSpec) DeepCopy ¶ added in v0.2.0
func (in *ElasticWorkloadSpec) DeepCopy() *ElasticWorkloadSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticWorkloadSpec.
func (*ElasticWorkloadSpec) DeepCopyInto ¶ added in v0.2.0
func (in *ElasticWorkloadSpec) DeepCopyInto(out *ElasticWorkloadSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExternalSpec ¶ added in v0.2.0
type ExternalSpec struct { // +kubebuilder:validation:Required // External S3 endpoint URL. Endpoint string `json:"endpoint,omitempty"` // +kubebuilder:validation:Required // Reference to a secret containing "accessKey" and "secretKey" items. This // secret must already exist if specified. Credentials *corev1.SecretReference `json:"credentials,omitempty"` }
func (*ExternalSpec) DeepCopy ¶ added in v0.2.0
func (in *ExternalSpec) DeepCopy() *ExternalSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalSpec.
func (*ExternalSpec) DeepCopyInto ¶ added in v0.2.0
func (in *ExternalSpec) DeepCopyInto(out *ExternalSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluentConfigSpec ¶ added in v0.2.0
type FluentConfigSpec struct { Fluentbit *loggingv1beta1.FluentbitSpec `json:"fluentbit,omitempty"` Fluentd *loggingv1beta1.FluentdSpec `json:"fluentd,omitempty"` }
func (*FluentConfigSpec) DeepCopy ¶ added in v0.2.0
func (in *FluentConfigSpec) DeepCopy() *FluentConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluentConfigSpec.
func (*FluentConfigSpec) DeepCopyInto ¶ added in v0.2.0
func (in *FluentConfigSpec) DeepCopyInto(out *FluentConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GKESpec ¶ added in v0.2.0
type GKESpec struct { }
func (*GKESpec) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKESpec.
func (*GKESpec) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GPUControllerServiceSpec ¶ added in v0.2.0
type GPUControllerServiceSpec struct { ImageSpec `json:",inline,omitempty"` Enabled *bool `json:"enabled,omitempty"` RuntimeClass *string `json:"runtimeClass,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
func (*GPUControllerServiceSpec) DeepCopy ¶ added in v0.2.0
func (in *GPUControllerServiceSpec) DeepCopy() *GPUControllerServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GPUControllerServiceSpec.
func (*GPUControllerServiceSpec) DeepCopyInto ¶ added in v0.2.0
func (in *GPUControllerServiceSpec) DeepCopyInto(out *GPUControllerServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GpuPolicyAdapter ¶ added in v0.2.0
type GpuPolicyAdapter struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GpuPolicyAdapterSpec `json:"spec,omitempty"` Status GpuPolicyAdapterStatus `json:"status,omitempty"` }
GpuPolicyAdapter is the Schema for the gpupolicyadapters API
func (*GpuPolicyAdapter) DeepCopy ¶ added in v0.2.0
func (in *GpuPolicyAdapter) DeepCopy() *GpuPolicyAdapter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuPolicyAdapter.
func (*GpuPolicyAdapter) DeepCopyInto ¶ added in v0.2.0
func (in *GpuPolicyAdapter) DeepCopyInto(out *GpuPolicyAdapter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GpuPolicyAdapter) DeepCopyObject ¶ added in v0.2.0
func (in *GpuPolicyAdapter) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GpuPolicyAdapterList ¶ added in v0.2.0
type GpuPolicyAdapterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GpuPolicyAdapter `json:"items"` }
GpuPolicyAdapterList contains a list of GpuPolicyAdapter
func (*GpuPolicyAdapterList) DeepCopy ¶ added in v0.2.0
func (in *GpuPolicyAdapterList) DeepCopy() *GpuPolicyAdapterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuPolicyAdapterList.
func (*GpuPolicyAdapterList) DeepCopyInto ¶ added in v0.2.0
func (in *GpuPolicyAdapterList) DeepCopyInto(out *GpuPolicyAdapterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GpuPolicyAdapterList) DeepCopyObject ¶ added in v0.2.0
func (in *GpuPolicyAdapterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GpuPolicyAdapterSpec ¶ added in v0.2.0
type GpuPolicyAdapterSpec struct { // +kubebuilder:validation:Enum={"auto","docker","containerd","crio"} // +kubebuilder:default=auto ContainerRuntime ContainerRuntime `json:"containerRuntime,omitempty"` // +kubebuilder:validation:Enum={"auto","k3s","rke2","rke","none"} // +kubebuilder:default=auto KubernetesProvider string `json:"kubernetesProvider,omitempty"` Images ImagesSpec `json:"images,omitempty"` VGPU *VGPUSpec `json:"vgpu,omitempty"` // +kubebuilder:validation:Optional Template nvidiav1.ClusterPolicySpec `json:"template,omitempty"` }
GpuPolicyAdapterSpec defines the desired state of GpuPolicyAdapter
func (*GpuPolicyAdapterSpec) DeepCopy ¶ added in v0.2.0
func (in *GpuPolicyAdapterSpec) DeepCopy() *GpuPolicyAdapterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuPolicyAdapterSpec.
func (*GpuPolicyAdapterSpec) DeepCopyInto ¶ added in v0.2.0
func (in *GpuPolicyAdapterSpec) DeepCopyInto(out *GpuPolicyAdapterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GpuPolicyAdapterStatus ¶ added in v0.2.0
type GpuPolicyAdapterStatus struct { }
GpuPolicyAdapterStatus defines the observed state of GpuPolicyAdapter
func (*GpuPolicyAdapterStatus) DeepCopy ¶ added in v0.2.0
func (in *GpuPolicyAdapterStatus) DeepCopy() *GpuPolicyAdapterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GpuPolicyAdapterStatus.
func (*GpuPolicyAdapterStatus) DeepCopyInto ¶ added in v0.2.0
func (in *GpuPolicyAdapterStatus) DeepCopyInto(out *GpuPolicyAdapterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPSource ¶ added in v0.2.0
type HTTPSource struct { // +kubebuilder:validation:Required URL string `json:"url"` }
func (*HTTPSource) DeepCopy ¶ added in v0.2.0
func (in *HTTPSource) DeepCopy() *HTTPSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPSource.
func (*HTTPSource) DeepCopyInto ¶ added in v0.2.0
func (in *HTTPSource) DeepCopyInto(out *HTTPSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageResolver ¶ added in v0.2.0
type ImageResolver struct { Version string ImageName string DefaultRepo string DefaultRepoOverride *string ImageOverride *ImageSpec }
func (*ImageResolver) DeepCopy ¶ added in v0.2.0
func (in *ImageResolver) DeepCopy() *ImageResolver
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageResolver.
func (*ImageResolver) DeepCopyInto ¶ added in v0.2.0
func (in *ImageResolver) DeepCopyInto(out *ImageResolver)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ImageResolver) Resolve ¶ added in v0.2.0
func (r ImageResolver) Resolve() (result ImageSpec)
type ImageSpec ¶ added in v0.2.0
type ImageSpec struct { Image *string `json:"image,omitempty"` ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"` ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` }
func (*ImageSpec) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.
func (*ImageSpec) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ImageSpec) GetImagePullPolicy ¶ added in v0.2.0
func (s ImageSpec) GetImagePullPolicy() (_ corev1.PullPolicy)
type ImagesSpec ¶ added in v0.2.0
type ImagesSpec struct { Driver string `json:"driver,omitempty"` DriverManager string `json:"driverManager,omitempty"` DCGM string `json:"dcgm,omitempty"` DCGMExporter string `json:"dcgmExporter,omitempty"` DevicePlugin string `json:"devicePlugin,omitempty"` GFD string `json:"gfd,omitempty"` InitContainer string `json:"initContainer,omitempty"` Toolkit string `json:"toolkit,omitempty"` Validator string `json:"validator,omitempty"` MIGManager string `json:"migManager,omitempty"` }
func (*ImagesSpec) DeepCopy ¶ added in v0.2.0
func (in *ImagesSpec) DeepCopy() *ImagesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImagesSpec.
func (*ImagesSpec) DeepCopyInto ¶ added in v0.2.0
func (in *ImagesSpec) DeepCopyInto(out *ImagesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InferenceServiceSpec ¶
type InferenceServiceSpec struct { ImageSpec `json:",inline,omitempty"` Enabled *bool `json:"enabled,omitempty"` PretrainedModels []corev1.LocalObjectReference `json:"pretrainedModels,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
func (*InferenceServiceSpec) DeepCopy ¶
func (in *InferenceServiceSpec) DeepCopy() *InferenceServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InferenceServiceSpec.
func (*InferenceServiceSpec) DeepCopyInto ¶
func (in *InferenceServiceSpec) DeepCopyInto(out *InferenceServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InsightsServiceSpec ¶ added in v0.2.0
type InsightsServiceSpec struct { ImageSpec `json:",inline,omitempty"` Enabled *bool `json:"enabled,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
func (*InsightsServiceSpec) DeepCopy ¶ added in v0.2.0
func (in *InsightsServiceSpec) DeepCopy() *InsightsServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InsightsServiceSpec.
func (*InsightsServiceSpec) DeepCopyInto ¶ added in v0.2.0
func (in *InsightsServiceSpec) DeepCopyInto(out *InsightsServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InternalSpec ¶ added in v0.2.0
type InternalSpec struct { // Persistence configuration for internal S3 deployment. If unset, internal // S3 storage is not persistent. Persistence *PersistenceSpec `json:"persistence,omitempty"` }
func (*InternalSpec) DeepCopy ¶ added in v0.2.0
func (in *InternalSpec) DeepCopy() *InternalSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalSpec.
func (*InternalSpec) DeepCopyInto ¶ added in v0.2.0
func (in *InternalSpec) DeepCopyInto(out *InternalSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K3SSpec ¶ added in v0.2.0
type K3SSpec struct { ContainerEngine ContainerEngine `json:"containerEngine,omitempty"` LogPath string `json:"logPath,omitempty"` }
func (*K3SSpec) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3SSpec.
func (*K3SSpec) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LogAdapter ¶ added in v0.2.0
type LogAdapter struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LogAdapterSpec `json:"spec,omitempty"` Status LogAdapterStatus `json:"status,omitempty"` }
LogAdapter is the Schema for the logadapters API
func (*LogAdapter) DeepCopy ¶ added in v0.2.0
func (in *LogAdapter) DeepCopy() *LogAdapter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogAdapter.
func (*LogAdapter) DeepCopyInto ¶ added in v0.2.0
func (in *LogAdapter) DeepCopyInto(out *LogAdapter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LogAdapter) DeepCopyObject ¶ added in v0.2.0
func (in *LogAdapter) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*LogAdapter) Default ¶ added in v0.2.0
func (r *LogAdapter) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*LogAdapter) SetupWebhookWithManager ¶ added in v0.2.0
func (r *LogAdapter) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*LogAdapter) ValidateCreate ¶ added in v0.2.0
func (r *LogAdapter) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*LogAdapter) ValidateDelete ¶ added in v0.2.0
func (r *LogAdapter) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*LogAdapter) ValidateUpdate ¶ added in v0.2.0
func (r *LogAdapter) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type LogAdapterList ¶ added in v0.2.0
type LogAdapterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []LogAdapter `json:"items"` }
LogAdapterList contains a list of LogAdapter
func (*LogAdapterList) DeepCopy ¶ added in v0.2.0
func (in *LogAdapterList) DeepCopy() *LogAdapterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogAdapterList.
func (*LogAdapterList) DeepCopyInto ¶ added in v0.2.0
func (in *LogAdapterList) DeepCopyInto(out *LogAdapterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LogAdapterList) DeepCopyObject ¶ added in v0.2.0
func (in *LogAdapterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LogAdapterSpec ¶ added in v0.2.0
type LogAdapterSpec struct { // +kubebuilder:validation:Enum:=aks;eks;gke;k3s;rke;rke2 // +kubebuilder:validation:Required Provider LogProvider `json:"provider"` // +kubebuilder:validation:Required OpniCluster OpniClusterNameSpec `json:"opniCluster,omitempty"` ContainerLogDir string `json:"containerLogDir,omitempty"` SELinuxEnabled bool `json:"seLinuxEnabled,omitempty"` AKS *AKSSpec `json:"aks,omitempty"` EKS *EKSSpec `json:"eks,omitempty"` GKE *GKESpec `json:"gke,omitempty"` K3S *K3SSpec `json:"k3s,omitempty"` RKE *RKESpec `json:"rke,omitempty"` RKE2 *RKE2Spec `json:"rke2,omitempty"` FluentConfig *FluentConfigSpec `json:"fluentConfig,omitempty"` RootFluentConfig *FluentConfigSpec `json:"rootFluentConfig,omitempty"` }
LogAdapterSpec defines the desired state of LogAdapter
func (*LogAdapterSpec) DeepCopy ¶ added in v0.2.0
func (in *LogAdapterSpec) DeepCopy() *LogAdapterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogAdapterSpec.
func (*LogAdapterSpec) DeepCopyInto ¶ added in v0.2.0
func (in *LogAdapterSpec) DeepCopyInto(out *LogAdapterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LogAdapterStatus ¶ added in v0.2.0
type LogAdapterStatus struct { Phase string `json:"phase,omitempty"` Message string `json:"message,omitempty"` Conditions []string `json:"conditions,omitempty"` }
LogAdapterStatus defines the observed state of LogAdapter
func (*LogAdapterStatus) DeepCopy ¶ added in v0.2.0
func (in *LogAdapterStatus) DeepCopy() *LogAdapterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogAdapterStatus.
func (*LogAdapterStatus) DeepCopyInto ¶ added in v0.2.0
func (in *LogAdapterStatus) DeepCopyInto(out *LogAdapterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LogProvider ¶ added in v0.2.0
type LogProvider string
const ( LogProviderAKS LogProvider = "aks" LogProviderEKS LogProvider = "eks" LogProviderGKE LogProvider = "gke" LogProviderK3S LogProvider = "k3s" LogProviderRKE LogProvider = "rke" LogProviderRKE2 LogProvider = "rke2" )
func (LogProvider) ApplyDefaults ¶ added in v0.2.0
func (p LogProvider) ApplyDefaults(a *LogAdapter)
ApplyDefaults will configure the default provider-specific settings, and apply any defaults for the Fluentbit or Fluentd specs if needed. This function will ensure the corresponding provider-specific spec field is not nil. When this function is called, a.Spec.Fluentbit and a.Spec.Fluentd are guaranteed not to be nil.
type MetricsServiceSpec ¶ added in v0.2.0
type MetricsServiceSpec struct { ImageSpec `json:",inline,omitempty"` Enabled *bool `json:"enabled,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` PrometheusEndpoint string `json:"prometheusEndpoint,omitempty"` }
func (*MetricsServiceSpec) DeepCopy ¶ added in v0.2.0
func (in *MetricsServiceSpec) DeepCopy() *MetricsServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsServiceSpec.
func (*MetricsServiceSpec) DeepCopyInto ¶ added in v0.2.0
func (in *MetricsServiceSpec) DeepCopyInto(out *MetricsServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModelSource ¶ added in v0.2.0
type ModelSource struct { // +optional HTTP *HTTPSource `json:"http,omitempty"` // +optional Container *ContainerSource `json:"container,omitempty"` }
func (*ModelSource) DeepCopy ¶ added in v0.2.0
func (in *ModelSource) DeepCopy() *ModelSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelSource.
func (*ModelSource) DeepCopyInto ¶ added in v0.2.0
func (in *ModelSource) DeepCopyInto(out *ModelSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NatsAuthMethod ¶ added in v0.2.0
type NatsAuthMethod string
+kubebuilder:validation:Enum=username;nkey
const ( NatsAuthUsername NatsAuthMethod = "username" NatsAuthNkey NatsAuthMethod = "nkey" )
type NatsSpec ¶ added in v0.2.0
type NatsSpec struct { // +kubebuilder:validation:Required // +kubebuilder:default:=username AuthMethod NatsAuthMethod `json:"authMethod,omitempty"` // Username to use for authentication, if username auth is specified in // AuthMethod. If empty, defaults to "nats-user". If AuthMethod is "nkey", // this field is ignored. Username string `json:"username,omitempty"` // Number of nats server replicas. If not set, defaults to 3. Replicas *int32 `json:"replicas,omitempty"` // A secret containing a "password" item. This secret must already exist // if specified. PasswordFrom *corev1.SecretKeySelector `json:"passwordFrom,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
func (*NatsSpec) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NatsSpec.
func (*NatsSpec) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OpniCluster ¶
type OpniCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec OpniClusterSpec `json:"spec,omitempty"` Status OpniClusterStatus `json:"status,omitempty"` }
OpniCluster is the Schema for the opniclusters API
func (*OpniCluster) DeepCopy ¶
func (in *OpniCluster) DeepCopy() *OpniCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpniCluster.
func (*OpniCluster) DeepCopyInto ¶
func (in *OpniCluster) DeepCopyInto(out *OpniCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OpniCluster) DeepCopyObject ¶
func (in *OpniCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*OpniCluster) GetConditions ¶ added in v0.2.0
func (c *OpniCluster) GetConditions() []string
func (*OpniCluster) GetState ¶ added in v0.2.0
func (c *OpniCluster) GetState() string
type OpniClusterList ¶
type OpniClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []OpniCluster `json:"items"` }
OpniClusterList contains a list of OpniCluster
func (*OpniClusterList) DeepCopy ¶
func (in *OpniClusterList) DeepCopy() *OpniClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpniClusterList.
func (*OpniClusterList) DeepCopyInto ¶
func (in *OpniClusterList) DeepCopyInto(out *OpniClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OpniClusterList) DeepCopyObject ¶
func (in *OpniClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OpniClusterNameSpec ¶ added in v0.2.0
type OpniClusterNameSpec struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` }
func (*OpniClusterNameSpec) DeepCopy ¶ added in v0.2.0
func (in *OpniClusterNameSpec) DeepCopy() *OpniClusterNameSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpniClusterNameSpec.
func (*OpniClusterNameSpec) DeepCopyInto ¶ added in v0.2.0
func (in *OpniClusterNameSpec) DeepCopyInto(out *OpniClusterNameSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OpniClusterSpec ¶
type OpniClusterSpec struct { // +kubebuilder:default:=latest Version string `json:"version"` // +optional DefaultRepo *string `json:"defaultRepo,omitempty"` Services ServicesSpec `json:"services,omitempty"` Elastic ElasticSpec `json:"elastic,omitempty"` Nats NatsSpec `json:"nats,omitempty"` S3 S3Spec `json:"s3,omitempty"` NulogHyperparameters map[string]intstr.IntOrString `json:"nulogHyperparameters,omitempty"` DeployLogCollector *bool `json:"deployLogCollector"` GlobalNodeSelector map[string]string `json:"globalNodeSelector,omitempty"` GlobalTolerations []corev1.Toleration `json:"globalTolerations,omitempty"` }
OpniClusterSpec defines the desired state of OpniCluster
func (*OpniClusterSpec) DeepCopy ¶
func (in *OpniClusterSpec) DeepCopy() *OpniClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpniClusterSpec.
func (*OpniClusterSpec) DeepCopyInto ¶
func (in *OpniClusterSpec) DeepCopyInto(out *OpniClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OpniClusterState ¶ added in v0.2.0
type OpniClusterState string
const ( OpniClusterStateError OpniClusterState = "Error" OpniClusterStateWorking OpniClusterState = "Working" OpniClusterStateReady OpniClusterState = "Ready" )
type OpniClusterStatus ¶
type OpniClusterStatus struct { Conditions []string `json:"conditions,omitempty"` State OpniClusterState `json:"state,omitempty"` IndexState OpniClusterState `json:"indexState,omitempty"` LogCollectorState OpniClusterState `json:"logState,omitempty"` NatsReplicas int32 `json:"natsReplicas,omitempty"` Auth AuthStatus `json:"auth,omitempty"` }
OpniClusterStatus defines the observed state of OpniCluster
func (*OpniClusterStatus) DeepCopy ¶
func (in *OpniClusterStatus) DeepCopy() *OpniClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpniClusterStatus.
func (*OpniClusterStatus) DeepCopyInto ¶
func (in *OpniClusterStatus) DeepCopyInto(out *OpniClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PayloadReceiverServiceSpec ¶ added in v0.2.0
type PayloadReceiverServiceSpec struct { ImageSpec `json:",inline,omitempty"` Enabled *bool `json:"enabled,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
func (*PayloadReceiverServiceSpec) DeepCopy ¶ added in v0.2.0
func (in *PayloadReceiverServiceSpec) DeepCopy() *PayloadReceiverServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PayloadReceiverServiceSpec.
func (*PayloadReceiverServiceSpec) DeepCopyInto ¶ added in v0.2.0
func (in *PayloadReceiverServiceSpec) DeepCopyInto(out *PayloadReceiverServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PersistenceSpec ¶ added in v0.2.0
type PersistenceSpec struct { Enabled bool `json:"enabled,omitempty"` StorageClassName *string `json:"storageClass,omitempty"` AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` // Storage size request. Defaults to 10Gi. Request resource.Quantity `json:"request,omitempty"` }
func (*PersistenceSpec) DeepCopy ¶ added in v0.2.0
func (in *PersistenceSpec) DeepCopy() *PersistenceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistenceSpec.
func (*PersistenceSpec) DeepCopyInto ¶ added in v0.2.0
func (in *PersistenceSpec) DeepCopyInto(out *PersistenceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PreprocessingServiceSpec ¶
type PreprocessingServiceSpec struct { ImageSpec `json:",inline,omitempty"` Enabled *bool `json:"enabled,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
func (*PreprocessingServiceSpec) DeepCopy ¶
func (in *PreprocessingServiceSpec) DeepCopy() *PreprocessingServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreprocessingServiceSpec.
func (*PreprocessingServiceSpec) DeepCopyInto ¶
func (in *PreprocessingServiceSpec) DeepCopyInto(out *PreprocessingServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PretrainedModel ¶ added in v0.2.0
type PretrainedModel struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PretrainedModelSpec `json:"spec,omitempty"` Status PretrainedModelStatus `json:"status,omitempty"` }
PretrainedModel is the Schema for the pretrainedmodels API
func (*PretrainedModel) DeepCopy ¶ added in v0.2.0
func (in *PretrainedModel) DeepCopy() *PretrainedModel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PretrainedModel.
func (*PretrainedModel) DeepCopyInto ¶ added in v0.2.0
func (in *PretrainedModel) DeepCopyInto(out *PretrainedModel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PretrainedModel) DeepCopyObject ¶ added in v0.2.0
func (in *PretrainedModel) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PretrainedModelList ¶ added in v0.2.0
type PretrainedModelList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PretrainedModel `json:"items"` }
PretrainedModelList contains a list of PretrainedModel
func (*PretrainedModelList) DeepCopy ¶ added in v0.2.0
func (in *PretrainedModelList) DeepCopy() *PretrainedModelList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PretrainedModelList.
func (*PretrainedModelList) DeepCopyInto ¶ added in v0.2.0
func (in *PretrainedModelList) DeepCopyInto(out *PretrainedModelList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PretrainedModelList) DeepCopyObject ¶ added in v0.2.0
func (in *PretrainedModelList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PretrainedModelSpec ¶ added in v0.2.0
type PretrainedModelSpec struct { // +kubebuilder:validation:Required ModelSource `json:"source"` // +optional Hyperparameters map[string]intstr.IntOrString `json:"hyperparameters,omitempty"` }
PretrainedModelSpec defines the desired state of PretrainedModel
func (*PretrainedModelSpec) DeepCopy ¶ added in v0.2.0
func (in *PretrainedModelSpec) DeepCopy() *PretrainedModelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PretrainedModelSpec.
func (*PretrainedModelSpec) DeepCopyInto ¶ added in v0.2.0
func (in *PretrainedModelSpec) DeepCopyInto(out *PretrainedModelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PretrainedModelStatus ¶ added in v0.2.0
type PretrainedModelStatus struct {
ConfigMap corev1.LocalObjectReference `json:"configMap,omitempty"`
}
PretrainedModelStatus defines the observed state of PretrainedModel
func (*PretrainedModelStatus) DeepCopy ¶ added in v0.2.0
func (in *PretrainedModelStatus) DeepCopy() *PretrainedModelStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PretrainedModelStatus.
func (*PretrainedModelStatus) DeepCopyInto ¶ added in v0.2.0
func (in *PretrainedModelStatus) DeepCopyInto(out *PretrainedModelStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RKE2Spec ¶ added in v0.2.0
type RKE2Spec struct {
LogPath string `json:"logPath,omitempty"`
}
func (*RKE2Spec) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKE2Spec.
func (*RKE2Spec) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RKESpec ¶ added in v0.2.0
type RKESpec struct {
LogLevel LogLevel `json:"logLevel,omitempty"`
}
func (*RKESpec) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKESpec.
func (*RKESpec) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3Spec ¶
type S3Spec struct { // If set, Opni will deploy an S3 pod to use internally. // Cannot be set at the same time as `external`. Internal *InternalSpec `json:"internal,omitempty"` // If set, Opni will connect to an external S3 endpoint. // Cannot be set at the same time as `internal`. External *ExternalSpec `json:"external,omitempty"` // Bucket used to persist nulog models. If not set will use // opni-nulog-models. NulogS3Bucket string `json:"nulogS3Bucket,omitempty"` // Bucket used to persiste drain models. It not set will use // opni-drain-models DrainS3Bucket string `json:"drainS3Bucket,omitempty"` }
func (*S3Spec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Spec.
func (*S3Spec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceKind ¶ added in v0.2.0
type ServiceKind int
const ( InferenceService ServiceKind = iota DrainService PreprocessingService PayloadReceiverService GPUControllerService MetricsService InsightsService UIService )
func (ServiceKind) GetImageSpec ¶ added in v0.2.0
func (s ServiceKind) GetImageSpec(opniCluster *OpniCluster) *ImageSpec
func (ServiceKind) GetNodeSelector ¶ added in v0.2.0
func (s ServiceKind) GetNodeSelector(opniCluster *OpniCluster) map[string]string
func (ServiceKind) GetTolerations ¶ added in v0.2.0
func (s ServiceKind) GetTolerations(opniCluster *OpniCluster) []corev1.Toleration
func (ServiceKind) ImageName ¶ added in v0.2.0
func (s ServiceKind) ImageName() string
func (ServiceKind) ServiceName ¶ added in v0.2.0
func (s ServiceKind) ServiceName() string
func (ServiceKind) String ¶ added in v0.2.0
func (s ServiceKind) String() string
type ServicesSpec ¶
type ServicesSpec struct { Drain DrainServiceSpec `json:"drain,omitempty"` Inference InferenceServiceSpec `json:"inference,omitempty"` Preprocessing PreprocessingServiceSpec `json:"preprocessing,omitempty"` PayloadReceiver PayloadReceiverServiceSpec `json:"payloadReceiver,omitempty"` GPUController GPUControllerServiceSpec `json:"gpuController,omitempty"` Metrics MetricsServiceSpec `json:"metrics,omitempty"` Insights InsightsServiceSpec `json:"insights,omitempty"` UI UIServiceSpec `json:"ui,omitempty"` }
func (*ServicesSpec) DeepCopy ¶
func (in *ServicesSpec) DeepCopy() *ServicesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicesSpec.
func (*ServicesSpec) DeepCopyInto ¶
func (in *ServicesSpec) DeepCopyInto(out *ServicesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UIServiceSpec ¶ added in v0.2.0
type UIServiceSpec struct { ImageSpec `json:",inline,omitempty"` Enabled *bool `json:"enabled,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
func (*UIServiceSpec) DeepCopy ¶ added in v0.2.0
func (in *UIServiceSpec) DeepCopy() *UIServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UIServiceSpec.
func (*UIServiceSpec) DeepCopyInto ¶ added in v0.2.0
func (in *UIServiceSpec) DeepCopyInto(out *UIServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VGPUSpec ¶ added in v0.2.0
type VGPUSpec struct { LicenseConfigMap string `json:"licenseConfigMap,omitempty"` // +kubebuilder:validation:Enum={"nls","legacy"} LicenseServerKind string `json:"licenseServerKind,omitempty"` }
func (*VGPUSpec) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VGPUSpec.
func (*VGPUSpec) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.