Skip to content

Commit e0ed956

Browse files
authored
Chore: Deprecate desiredOptimizedAlloc.accelerator (#955)
* Add shuynh2017 to the OWNERS list * deprecate desiredOptimizedAlloc.accelerator * make optional * remove MinLength
1 parent 89ef12b commit e0ed956

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

api/v1alpha1/variantautoscaling_types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ type OptimizedAlloc struct {
7272
LastRunTime metav1.Time `json:"lastRunTime,omitempty"`
7373

7474
// Accelerator is the type of accelerator for the optimized allocation.
75-
// +kubebuilder:validation:MinLength=2
76-
Accelerator string `json:"accelerator"`
75+
// Deprecated: This field is deprecated and will be removed in a future version. Use node selector or node affinity from scale target instead.
76+
// +optional
77+
Accelerator string `json:"accelerator,omitempty"`
7778

7879
// NumReplicas is the number of replicas for the optimized allocation.
7980
// nil means no optimization decision has been made yet.

charts/workload-variant-autoscaler/crds/llmd.ai_variantautoscalings.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ spec:
201201
allocation based on autoscaling logic.
202202
properties:
203203
accelerator:
204-
description: Accelerator is the type of accelerator for the optimized
205-
allocation.
206-
minLength: 2
204+
description: |-
205+
Accelerator is the type of accelerator for the optimized allocation.
206+
Deprecated: This field is deprecated and will be removed in a future version. Use node selector or node affinity from scale target instead.
207207
type: string
208208
lastRunTime:
209209
description: LastRunTime is the timestamp of the last optimization
@@ -217,8 +217,6 @@ spec:
217217
format: int32
218218
minimum: 0
219219
type: integer
220-
required:
221-
- accelerator
222220
type: object
223221
type: object
224222
type: object

config/crd/bases/llmd.ai_variantautoscalings.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ spec:
201201
allocation based on autoscaling logic.
202202
properties:
203203
accelerator:
204-
description: Accelerator is the type of accelerator for the optimized
205-
allocation.
206-
minLength: 2
204+
description: |-
205+
Accelerator is the type of accelerator for the optimized allocation.
206+
Deprecated: This field is deprecated and will be removed in a future version. Use node selector or node affinity from scale target instead.
207207
type: string
208208
lastRunTime:
209209
description: LastRunTime is the timestamp of the last optimization
@@ -217,8 +217,6 @@ spec:
217217
format: int32
218218
minimum: 0
219219
type: integer
220-
required:
221-
- accelerator
222220
type: object
223221
type: object
224222
type: object

docs/user-guide/crd-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ _Appears in:_
4444
| Field | Description | Default | Validation |
4545
| --- | --- | --- | --- |
4646
| `lastRunTime` _[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.32/#time-v1-meta)_ | LastRunTime is the timestamp of the last optimization run. | | |
47-
| `accelerator` _string_ | Accelerator is the type of accelerator for the optimized allocation. | | MinLength: 2 <br /> |
47+
| `accelerator` _string_ | Accelerator is the type of accelerator for the optimized allocation. This field is deprecated and will be removed in a future version. Use node selector or node affinity from scale target instead. | | |
4848
| `numReplicas` _integer_ | NumReplicas is the number of replicas for the optimized allocation.<br />nil means no optimization decision has been made yet. | | Minimum: 0 <br /> |
4949

5050

0 commit comments

Comments
 (0)