Skip to content

Commit

Permalink
feat: add WorkerNodes to RAGEngineStatus (#612)
Browse files Browse the repository at this point in the history
**Reason for Change**:
add WorkerNodes to RAGEngineStatus

**Requirements**

- [ ] added unit tests and e2e tests (if applicable).

**Issue Fixed**:
<!-- If this PR fixes GitHub issue 4321, add "Fixes #4321" to the next
line. -->

**Notes for Reviewers**:

Signed-off-by: Bangqi Zhu <[email protected]>
Co-authored-by: Bangqi Zhu <[email protected]>
  • Loading branch information
bangqipropel and Bangqi Zhu authored Oct 4, 2024
1 parent ba1a62d commit cccb1cb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ SHELL = /usr/bin/env bash -o pipefail
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
cp config/crd/bases/kaito.sh_workspaces.yaml charts/kaito/workspace/crds/
cp config/crd/bases/kaito.sh_ragengines.yaml charts/kaito/ragengine/crds/

.PHONY: generate
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
Expand Down
4 changes: 4 additions & 0 deletions api/v1alpha1/ragengine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ type RAGEngineSpec struct {

// RAGEngineStatus defines the observed state of RAGEngine
type RAGEngineStatus struct {
// WorkerNodes is the list of nodes chosen to run the workload based on the RAGEngine resource requirement.
// +optional
WorkerNodes []string `json:"workerNodes,omitempty"`

Conditions []metav1.Condition `json:"conditions,omitempty"`
}

Expand Down
6 changes: 6 additions & 0 deletions charts/kaito/ragengine/crds/kaito.sh_ragengines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ spec:
- type
type: object
type: array
workerNodes:
description: WorkerNodes is the list of nodes chosen to run the workload
based on the RAGEngine resource requirement.
items:
type: string
type: array
type: object
type: object
served: true
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/kaito.sh_ragengines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ spec:
- type
type: object
type: array
workerNodes:
description: WorkerNodes is the list of nodes chosen to run the workload
based on the RAGEngine resource requirement.
items:
type: string
type: array
type: object
type: object
served: true
Expand Down

0 comments on commit cccb1cb

Please sign in to comment.