Skip to content

Commit e155360

Browse files
authored
add missing kubebuilder (#1004)
1 parent 5b6f0a0 commit e155360

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ spec:
203203
accelerator:
204204
description: |-
205205
Accelerator is the type of accelerator for the optimized allocation.
206+
206207
Deprecated: This field is deprecated and will be removed in a future version. Use node selector or node affinity from scale target instead.
207208
type: string
208209
lastRunTime:

config/crd/bases/llmd.ai_variantautoscalings.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ spec:
203203
accelerator:
204204
description: |-
205205
Accelerator is the type of accelerator for the optimized allocation.
206+
206207
Deprecated: This field is deprecated and will be removed in a future version. Use node selector or node affinity from scale target instead.
207208
type: string
208209
lastRunTime:

internal/controller/variantautoscaling_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ func NewVariantAutoscalingReconciler(
8383
// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;update;patch
8484
// +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch
8585
// +kubebuilder:rbac:groups=leaderworkerset.x-k8s.io,resources=leaderworkersets,verbs=get;list;watch;update;patch
86+
// +kubebuilder:rbac:groups=leaderworkerset.x-k8s.io,resources=leaderworkersets/scale,verbs=get;update
8687
// +kubebuilder:rbac:groups="apps",resources=replicasets,verbs=get;list;watch
8788
// +kubebuilder:rbac:groups="",resources=pods,verbs=get;list;watch
8889
// +kubebuilder:rbac:groups="",resources=services,verbs=get;list;watch

0 commit comments

Comments
 (0)