"tools/vscode:/vscode.git/clone" did not exist on "6901df66b8b68696d5d2b79beb0fb31dbf1bd96d"
Commit 602352ce authored by Neelay Shah's avatar Neelay Shah Committed by GitHub
Browse files

chore: rename dynamo (#44)


Co-authored-by: default avatarBiswa Panda <biswa.panda@gmail.com>
parent ecf53ce2
...@@ -339,7 +339,7 @@ spec: ...@@ -339,7 +339,7 @@ spec:
args: args:
- uv - uv
- run - run
- compoundai - dynamo
- start - start
- --service-name - --service-name
- {{ $component_name | quote }} - {{ $component_name | quote }}
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# `component` contains configuration options related to the Distributed Neural Models Component. # `component` contains configuration options related to the Distributed Neural Models Component.
component: component:
# `component.name` is the name of the Distributed Neural Models (dynemo) Component in the distributed deployment. # `component.name` is the name of the Distributed Neural Models (dynamo) Component in the distributed deployment.
name: # (required) name: # (required)
# `component.namespace` is the Distributed Neural Models namespace in which the Distributed Neural Models Component will be deployed. # `component.namespace` is the Distributed Neural Models namespace in which the Distributed Neural Models Component will be deployed.
namespace: # (default: "default") namespace: # (default: "default")
......
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
# limitations under the License. # limitations under the License.
component: component:
name: test_dynemo_chart name: test_dynamo_chart
distributed: distributed:
requestPlane: requestPlane:
etcdUrl: etcd:2379 etcdUrl: etcd:2379
natsUrl: nats://nats:4222 natsUrl: nats://nats:4222
image: image:
name: test_dynemo_image-name name: test_dynamo_image-name
...@@ -27,13 +27,13 @@ $tests = @( ...@@ -27,13 +27,13 @@ $tests = @(
lines = @( lines = @(
'labels:' 'labels:'
' app: test' ' app: test'
' app.kubernetes.io/component: test_dynemo_chart' ' app.kubernetes.io/component: test_dynamo_chart'
' app.kubernetes.io/instance: test' ' app.kubernetes.io/instance: test'
' app.kubernetes.io/name: test_dynemo_chart' ' app.kubernetes.io/name: test_dynamo_chart'
' app.kubernetes.io/part-of: dynemo' ' app.kubernetes.io/part-of: dynamo'
' app.kubernetes.io/version: "1.0.0"' ' app.kubernetes.io/version: "1.0.0"'
' app.kubernetes.io/managed-by: Helm' ' app.kubernetes.io/managed-by: Helm'
' helm.sh/chart: "dynemo_component"' ' helm.sh/chart: "dynamo_component"'
' helm.sh/version: "1.0.0"' ' helm.sh/version: "1.0.0"'
) )
} }
......
...@@ -31,7 +31,7 @@ issues: ...@@ -31,7 +31,7 @@ issues:
linters: linters:
- dupl - dupl
- lll - lll
- path: "pkg/compoundai/*" - path: "pkg/dynamo/*"
linters: linters:
- lll - lll
- nakedret - nakedret
......
...@@ -39,7 +39,7 @@ test: ...@@ -39,7 +39,7 @@ test:
docker: docker:
ARG CI_REGISTRY_IMAGE=my-registry ARG CI_REGISTRY_IMAGE=my-registry
ARG CI_COMMIT_SHA=latest ARG CI_COMMIT_SHA=latest
ARG IMAGE_SUFFIX=compoundai-operator ARG IMAGE_SUFFIX=dynamo-operator
FROM urm.nvidia.com/sw-gpu-ucs-hardened-docker/distroless/go:v3.1.3-amd64 FROM urm.nvidia.com/sw-gpu-ucs-hardened-docker/distroless/go:v3.1.3-amd64
WORKDIR / WORKDIR /
COPY +build/manager . COPY +build/manager .
......
...@@ -211,7 +211,7 @@ $(HELMIFY): $(LOCALBIN) ...@@ -211,7 +211,7 @@ $(HELMIFY): $(LOCALBIN)
test -s $(LOCALBIN)/helmify || GOBIN=$(LOCALBIN) go install github.com/arttor/helmify/cmd/helmify@v0.4.16 test -s $(LOCALBIN)/helmify || GOBIN=$(LOCALBIN) go install github.com/arttor/helmify/cmd/helmify@v0.4.16
helm: manifests kustomize helmify helm: manifests kustomize helmify
$(KUSTOMIZE) build config/default | $(HELMIFY) -image-pull-secrets charts/compoundai-kubernetes-operator $(KUSTOMIZE) build config/default | $(HELMIFY) -image-pull-secrets charts/dynamo-kubernetes-operator
.PHONY: coverage .PHONY: coverage
......
...@@ -5,38 +5,38 @@ ...@@ -5,38 +5,38 @@
domain: nvidia.com domain: nvidia.com
layout: layout:
- go.kubebuilder.io/v4 - go.kubebuilder.io/v4
projectName: compoundai-kubernetes-operator projectName: dynamo-kubernetes-operator
repo: github.com/dynemo-ai/dynemo/deploy/compoundai/operator/api/v1alpha1 repo: github.com/dynemo-ai/dynemo/deploy/dynamo/operator/api/v1alpha1
resources: resources:
- api: - api:
crdVersion: v1 crdVersion: v1
namespaced: true namespaced: true
controller: true controller: true
domain: nvidia.com domain: nvidia.com
kind: CompoundAINimDeployment kind: DynamoNimDeployment
path: github.com/dynemo-ai/dynemo/deploy/compoundai/operator/api/v1alpha1 path: github.com/dynemo-ai/dynemo/deploy/dynamo/operator/api/v1alpha1
version: v1alpha1 version: v1alpha1
- api: - api:
crdVersion: v1 crdVersion: v1
namespaced: true namespaced: true
controller: true controller: true
domain: nvidia.com domain: nvidia.com
kind: CompoundAINimRequest kind: DynamoNimRequest
path: github.com/dynemo-ai/dynemo/deploy/compoundai/operator/api/v1alpha1 path: github.com/dynemo-ai/dynemo/deploy/dynamo/operator/api/v1alpha1
version: v1alpha1 version: v1alpha1
- api: - api:
crdVersion: v1 crdVersion: v1
namespaced: true namespaced: true
domain: nvidia.com domain: nvidia.com
kind: CompoundAINim kind: DynamoNim
path: github.com/dynemo-ai/dynemo/deploy/compoundai/operator/api/v1alpha1 path: github.com/dynemo-ai/dynemo/deploy/dynamo/operator/api/v1alpha1
version: v1alpha1 version: v1alpha1
- api: - api:
crdVersion: v1 crdVersion: v1
namespaced: true namespaced: true
controller: true controller: true
domain: nvidia.com domain: nvidia.com
kind: CompoundAIDeployment kind: DynamoDeployment
path: github.com/dynemo-ai/dynemo/deploy/compoundai/operator/api/v1alpha1 path: github.com/dynemo-ai/dynemo/deploy/dynamo/operator/api/v1alpha1
version: v1alpha1 version: v1alpha1
version: "3" version: "3"
# Compound AI Kubernetes Operator # Dynamo Kubernetes Operator
The NVIDIA Compound AI Kubernetes Operator uses the [operator framework](https://cloud.redhat.com/blog/introducing-the-operator-framework) within Kubernetes to automate the management of all compound AI resources. The NVIDIA Dynamo Kubernetes Operator uses the [operator framework](https://cloud.redhat.com/blog/introducing-the-operator-framework) within Kubernetes to automate the management of all dynamo resources.
## pre-requisites ## pre-requisites
......
...@@ -21,15 +21,15 @@ import ( ...@@ -21,15 +21,15 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/dynemo-ai/dynemo/deploy/compoundai/operator/api/compoundai/modelschemas" "github.com/dynemo-ai/dynemo/deploy/dynamo/operator/api/dynamo/modelschemas"
"github.com/dynemo-ai/dynemo/deploy/compoundai/operator/api/compoundai/schemasv1" "github.com/dynemo-ai/dynemo/deploy/dynamo/operator/api/dynamo/schemasv1"
"github.com/dynemo-ai/dynemo/deploy/compoundai/operator/pkg/compoundai/consts" "github.com/dynemo-ai/dynemo/deploy/dynamo/operator/pkg/dynamo/consts"
"github.com/dynemo-ai/dynemo/deploy/compoundai/operator/pkg/compoundai/reqcli" "github.com/dynemo-ai/dynemo/deploy/dynamo/operator/pkg/dynamo/reqcli"
"github.com/dynemo-ai/dynemo/deploy/compoundai/operator/pkg/compoundai/utils" "github.com/dynemo-ai/dynemo/deploy/dynamo/operator/pkg/dynamo/utils"
) )
type CompoundAIAuthHeaders struct { type DynamoAuthHeaders struct {
OrgId string OrgId string
UserId string UserId string
} }
...@@ -37,7 +37,7 @@ type CompoundAIAuthHeaders struct { ...@@ -37,7 +37,7 @@ type CompoundAIAuthHeaders struct {
type YataiClient struct { type YataiClient struct {
endpoint string endpoint string
apiToken string apiToken string
headers CompoundAIAuthHeaders headers DynamoAuthHeaders
} }
func NewYataiClient(endpoint, apiToken string) *YataiClient { func NewYataiClient(endpoint, apiToken string) *YataiClient {
...@@ -47,7 +47,7 @@ func NewYataiClient(endpoint, apiToken string) *YataiClient { ...@@ -47,7 +47,7 @@ func NewYataiClient(endpoint, apiToken string) *YataiClient {
} }
} }
func (c *YataiClient) SetAuth(headers CompoundAIAuthHeaders) { func (c *YataiClient) SetAuth(headers DynamoAuthHeaders) {
c.headers = headers c.headers = headers
} }
......
...@@ -24,20 +24,20 @@ import ( ...@@ -24,20 +24,20 @@ import (
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! // EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. // NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
// CompoundAIDeploymentSpec defines the desired state of CompoundAIDeployment. // DynamoDeploymentSpec defines the desired state of DynamoDeployment.
type CompoundAIDeploymentSpec struct { type DynamoDeploymentSpec struct {
// required // required
CompoundAINim string `json:"compoundAINim"` DynamoNim string `json:"dynamoNim"`
// optional // optional
// key is the name of the service defined in CompoundAINim // key is the name of the service defined in DynamoNim
// value is the CompoundAINimDeployment override for that service // value is the DynamoNimDeployment override for that service
// if not set, the CompoundAINimDeployment will be used as is // if not set, the DynamoNimDeployment will be used as is
// +kubebuilder:validation:Optional // +kubebuilder:validation:Optional
Services map[string]*CompoundAINimDeployment `json:"services,omitempty"` Services map[string]*DynamoNimDeployment `json:"services,omitempty"`
} }
// CompoundAIDeploymentStatus defines the observed state of CompoundAIDeployment. // DynamoDeploymentStatus defines the observed state of DynamoDeployment.
type CompoundAIDeploymentStatus struct { type DynamoDeploymentStatus struct {
State string `json:"state,omitempty"` State string `json:"state,omitempty"`
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
} }
...@@ -45,28 +45,28 @@ type CompoundAIDeploymentStatus struct { ...@@ -45,28 +45,28 @@ type CompoundAIDeploymentStatus struct {
// +kubebuilder:object:root=true // +kubebuilder:object:root=true
// +kubebuilder:subresource:status // +kubebuilder:subresource:status
// CompoundAIDeployment is the Schema for the compoundaideployments API. // DynamoDeployment is the Schema for the dynamodeployments API.
type CompoundAIDeployment struct { type DynamoDeployment struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CompoundAIDeploymentSpec `json:"spec,omitempty"` Spec DynamoDeploymentSpec `json:"spec,omitempty"`
Status CompoundAIDeploymentStatus `json:"status,omitempty"` Status DynamoDeploymentStatus `json:"status,omitempty"`
} }
func (s *CompoundAIDeployment) SetState(state string) { func (s *DynamoDeployment) SetState(state string) {
s.Status.State = state s.Status.State = state
} }
// +kubebuilder:object:root=true // +kubebuilder:object:root=true
// CompoundAIDeploymentList contains a list of CompoundAIDeployment. // DynamoDeploymentList contains a list of DynamoDeployment.
type CompoundAIDeploymentList struct { type DynamoDeploymentList struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"` metav1.ListMeta `json:"metadata,omitempty"`
Items []CompoundAIDeployment `json:"items"` Items []DynamoDeployment `json:"items"`
} }
func init() { func init() {
SchemeBuilder.Register(&CompoundAIDeployment{}, &CompoundAIDeploymentList{}) SchemeBuilder.Register(&DynamoDeployment{}, &DynamoDeploymentList{})
} }
...@@ -18,34 +18,34 @@ ...@@ -18,34 +18,34 @@
package v1alpha1 package v1alpha1
import ( import (
compounaiCommon "github.com/dynemo-ai/dynemo/deploy/compoundai/operator/api/compoundai/common" dynamoCommon "github.com/dynemo-ai/dynemo/deploy/dynamo/operator/api/dynamo/common"
corev1 "k8s.io/api/core/v1" corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
const ( const (
CompoundAIDeploymentConditionTypeAvailable = "Available" DynamoDeploymentConditionTypeAvailable = "Available"
CompoundAIDeploymentConditionTypeCompoundAINimFound = "CompoundAINimFound" DynamoDeploymentConditionTypeDynamoNimFound = "DynamoNimFound"
CompoundAIDeploymentConditionTypeCompoundAINimRequestFound = "CompoundAINimRequestFound" DynamoDeploymentConditionTypeDynamoNimRequestFound = "DynamoNimRequestFound"
) )
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! // EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. // NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
// CompoundAINimDeploymentSpec defines the desired state of CompoundAINimDeployment // DynamoNimDeploymentSpec defines the desired state of DynamoNimDeployment
type CompoundAINimDeploymentSpec struct { type DynamoNimDeploymentSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file // Important: Run "make" to regenerate code after modifying this file
Annotations map[string]string `json:"annotations,omitempty"` Annotations map[string]string `json:"annotations,omitempty"`
Labels map[string]string `json:"labels,omitempty"` Labels map[string]string `json:"labels,omitempty"`
CompoundAINim string `json:"compoundAINim"` DynamoNim string `json:"dynamoNim"`
// contains the name of the service // contains the name of the service
ServiceName string `json:"serviceName,omitempty"` ServiceName string `json:"serviceName,omitempty"`
Resources *compounaiCommon.Resources `json:"resources,omitempty"` Resources *dynamoCommon.Resources `json:"resources,omitempty"`
Autoscaling *Autoscaling `json:"autoscaling,omitempty"` Autoscaling *Autoscaling `json:"autoscaling,omitempty"`
Envs []corev1.EnvVar `json:"envs,omitempty"` Envs []corev1.EnvVar `json:"envs,omitempty"`
EnvFromSecret *string `json:"envFromSecret,omitempty"` EnvFromSecret *string `json:"envFromSecret,omitempty"`
...@@ -55,12 +55,12 @@ type CompoundAINimDeploymentSpec struct { ...@@ -55,12 +55,12 @@ type CompoundAINimDeploymentSpec struct {
Ingress IngressSpec `json:"ingress,omitempty"` Ingress IngressSpec `json:"ingress,omitempty"`
MonitorExporter *compounaiCommon.MonitorExporterSpec `json:"monitorExporter,omitempty"` MonitorExporter *dynamoCommon.MonitorExporterSpec `json:"monitorExporter,omitempty"`
// +optional // +optional
ExtraPodMetadata *compounaiCommon.ExtraPodMetadata `json:"extraPodMetadata,omitempty"` ExtraPodMetadata *dynamoCommon.ExtraPodMetadata `json:"extraPodMetadata,omitempty"`
// +optional // +optional
ExtraPodSpec *compounaiCommon.ExtraPodSpec `json:"extraPodSpec,omitempty"` ExtraPodSpec *dynamoCommon.ExtraPodSpec `json:"extraPodSpec,omitempty"`
LivenessProbe *corev1.Probe `json:"livenessProbe,omitempty"` LivenessProbe *corev1.Probe `json:"livenessProbe,omitempty"`
ReadinessProbe *corev1.Probe `json:"readinessProbe,omitempty"` ReadinessProbe *corev1.Probe `json:"readinessProbe,omitempty"`
...@@ -88,8 +88,8 @@ type IngressSpec struct { ...@@ -88,8 +88,8 @@ type IngressSpec struct {
TLS *IngressTLSSpec `json:"tls,omitempty"` TLS *IngressTLSSpec `json:"tls,omitempty"`
} }
// CompoundAINimDeploymentStatus defines the observed state of CompoundAINimDeployment // DynamoNimDeploymentStatus defines the observed state of DynamoNimDeployment
type CompoundAINimDeploymentStatus struct { type DynamoNimDeploymentStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file // Important: Run "make" to regenerate code after modifying this file
Conditions []metav1.Condition `json:"conditions"` Conditions []metav1.Condition `json:"conditions"`
...@@ -105,31 +105,31 @@ type CompoundAINimDeploymentStatus struct { ...@@ -105,31 +105,31 @@ type CompoundAINimDeploymentStatus struct {
//+kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Available" //+kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Available"
//+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" //+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// CompoundAINimDeployment is the Schema for the compoundainimdeployments API // DynamoNimDeployment is the Schema for the dynamonimdeployments API
type CompoundAINimDeployment struct { type DynamoNimDeployment struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CompoundAINimDeploymentSpec `json:"spec,omitempty"` Spec DynamoNimDeploymentSpec `json:"spec,omitempty"`
Status CompoundAINimDeploymentStatus `json:"status,omitempty"` Status DynamoNimDeploymentStatus `json:"status,omitempty"`
} }
// +kubebuilder:object:root=true // +kubebuilder:object:root=true
// CompoundAINimDeploymentList contains a list of CompoundAINimDeployment // DynamoNimDeploymentList contains a list of DynamoNimDeployment
type CompoundAINimDeploymentList struct { type DynamoNimDeploymentList struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"` metav1.ListMeta `json:"metadata,omitempty"`
Items []CompoundAINimDeployment `json:"items"` Items []DynamoNimDeployment `json:"items"`
} }
func init() { func init() {
SchemeBuilder.Register(&CompoundAINimDeployment{}, &CompoundAINimDeploymentList{}) SchemeBuilder.Register(&DynamoNimDeployment{}, &DynamoNimDeploymentList{})
} }
func (s *CompoundAINimDeploymentStatus) IsReady() bool { func (s *DynamoNimDeploymentStatus) IsReady() bool {
for _, condition := range s.Conditions { for _, condition := range s.Conditions {
if condition.Type == CompoundAIDeploymentConditionTypeAvailable && condition.Status == metav1.ConditionTrue { if condition.Type == DynamoDeploymentConditionTypeAvailable && condition.Status == metav1.ConditionTrue {
return true return true
} }
} }
......
...@@ -18,26 +18,26 @@ ...@@ -18,26 +18,26 @@
package v1alpha1 package v1alpha1
import ( import (
compoundaiCommon "github.com/dynemo-ai/dynemo/deploy/compoundai/operator/api/compoundai/common" dynamoCommon "github.com/dynemo-ai/dynemo/deploy/dynamo/operator/api/dynamo/common"
"github.com/dynemo-ai/dynemo/deploy/compoundai/operator/api/compoundai/modelschemas" "github.com/dynemo-ai/dynemo/deploy/dynamo/operator/api/dynamo/modelschemas"
corev1 "k8s.io/api/core/v1" corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
const ( const (
CompoundAINimRequestConditionTypeModelsSeeding = "ModelsSeeding" DynamoNimRequestConditionTypeModelsSeeding = "ModelsSeeding"
CompoundAINimRequestConditionTypeImageBuilding = "ImageBuilding" DynamoNimRequestConditionTypeImageBuilding = "ImageBuilding"
CompoundAINimRequestConditionTypeImageExists = "ImageExists" DynamoNimRequestConditionTypeImageExists = "ImageExists"
CompoundAINimRequestConditionTypeImageExistsChecked = "ImageExistsChecked" DynamoNimRequestConditionTypeImageExistsChecked = "ImageExistsChecked"
CompoundAINimRequestConditionTypeModelsExists = "ModelsExists" DynamoNimRequestConditionTypeModelsExists = "ModelsExists"
CompoundAINimRequestConditionTypeCompoundAINimAvailable = "CompoundAINimAvailable" DynamoNimRequestConditionTypeDynamoNimAvailable = "DynamoNimAvailable"
) )
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! // EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. // NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
// CompoundAINimRequestSpec defines the desired state of CompoundAINimRequest // DynamoNimRequestSpec defines the desired state of DynamoNimRequest
type CompoundAINimRequestSpec struct { type DynamoNimRequestSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file // Important: Run "make" to regenerate code after modifying this file
...@@ -57,9 +57,9 @@ type CompoundAINimRequestSpec struct { ...@@ -57,9 +57,9 @@ type CompoundAINimRequestSpec struct {
BuildArgs []string `json:"buildArgs,omitempty"` BuildArgs []string `json:"buildArgs,omitempty"`
// +kubebuilder:validation:Optional // +kubebuilder:validation:Optional
ImageBuilderExtraPodMetadata *compoundaiCommon.ExtraPodMetadata `json:"imageBuilderExtraPodMetadata,omitempty"` ImageBuilderExtraPodMetadata *dynamoCommon.ExtraPodMetadata `json:"imageBuilderExtraPodMetadata,omitempty"`
// +kubebuilder:validation:Optional // +kubebuilder:validation:Optional
ImageBuilderExtraPodSpec *compoundaiCommon.ExtraPodSpec `json:"imageBuilderExtraPodSpec,omitempty"` ImageBuilderExtraPodSpec *dynamoCommon.ExtraPodSpec `json:"imageBuilderExtraPodSpec,omitempty"`
// +kubebuilder:validation:Optional // +kubebuilder:validation:Optional
ImageBuilderExtraContainerEnv []corev1.EnvVar `json:"imageBuilderExtraContainerEnv,omitempty"` ImageBuilderExtraContainerEnv []corev1.EnvVar `json:"imageBuilderExtraContainerEnv,omitempty"`
// +kubebuilder:validation:Optional // +kubebuilder:validation:Optional
...@@ -75,8 +75,8 @@ type CompoundAINimRequestSpec struct { ...@@ -75,8 +75,8 @@ type CompoundAINimRequestSpec struct {
DownloaderContainerEnvFrom []corev1.EnvFromSource `json:"downloaderContainerEnvFrom,omitempty"` DownloaderContainerEnvFrom []corev1.EnvFromSource `json:"downloaderContainerEnvFrom,omitempty"`
} }
// CompoundAINimRequestStatus defines the observed state of CompoundAINimRequest // DynamoNimRequestStatus defines the observed state of DynamoNimRequest
type CompoundAINimRequestStatus struct { type DynamoNimRequestStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file // Important: Run "make" to regenerate code after modifying this file
Conditions []metav1.Condition `json:"conditions"` Conditions []metav1.Condition `json:"conditions"`
...@@ -92,24 +92,24 @@ type CompoundAINimRequestStatus struct { ...@@ -92,24 +92,24 @@ type CompoundAINimRequestStatus struct {
//+kubebuilder:printcolumn:name="Bento-Available",type="string",JSONPath=".status.conditions[?(@.type=='BentoAvailable')].status",description="Bento Available" //+kubebuilder:printcolumn:name="Bento-Available",type="string",JSONPath=".status.conditions[?(@.type=='BentoAvailable')].status",description="Bento Available"
//+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" //+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// CompoundAINimRequest is the Schema for the compoundainimrequests API // DynamoNimRequest is the Schema for the dynamonimrequests API
type CompoundAINimRequest struct { type DynamoNimRequest struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CompoundAINimRequestSpec `json:"spec,omitempty"` Spec DynamoNimRequestSpec `json:"spec,omitempty"`
Status CompoundAINimRequestStatus `json:"status,omitempty"` Status DynamoNimRequestStatus `json:"status,omitempty"`
} }
//+kubebuilder:object:root=true //+kubebuilder:object:root=true
// CompoundAINimRequestList contains a list of CompoundAINimRequest // DynamoNimRequestList contains a list of DynamoNimRequest
type CompoundAINimRequestList struct { type DynamoNimRequestList struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"` metav1.ListMeta `json:"metadata,omitempty"`
Items []CompoundAINimRequest `json:"items"` Items []DynamoNimRequest `json:"items"`
} }
func init() { func init() {
SchemeBuilder.Register(&CompoundAINimRequest{}, &CompoundAINimRequestList{}) SchemeBuilder.Register(&DynamoNimRequest{}, &DynamoNimRequestList{})
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment