Skip to content

Commit

Permalink
Deleting HPA object does not reduce replicas down (#145)
Browse files Browse the repository at this point in the history
Signed-off-by: Vishesh Tanksale <[email protected]>
  • Loading branch information
visheshtanksale authored Sep 19, 2024
1 parent bf90441 commit 901820a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/apps/v1alpha1/nimservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ type NIMServiceSpec struct {
Scale Autoscaling `json:"scale,omitempty"`
Metrics Metrics `json:"metrics,omitempty"`
// +kubebuilder:validation:Minimum=1
// +kubebuilder:default:=1
Replicas int `json:"replicas,omitempty"`
UserID *int64 `json:"userID,omitempty"`
GroupID *int64 `json:"groupID,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions bundle/manifests/apps.nvidia.com_nimpipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,7 @@ spec:
type: object
type: object
replicas:
default: 1
minimum: 1
type: integer
resources:
Expand Down
1 change: 1 addition & 0 deletions bundle/manifests/apps.nvidia.com_nimservices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,7 @@ spec:
type: object
type: object
replicas:
default: 1
minimum: 1
type: integer
resources:
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/apps.nvidia.com_nimpipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,7 @@ spec:
type: object
type: object
replicas:
default: 1
minimum: 1
type: integer
resources:
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/apps.nvidia.com_nimservices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,7 @@ spec:
type: object
type: object
replicas:
default: 1
minimum: 1
type: integer
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,7 @@ spec:
type: object
type: object
replicas:
default: 1
minimum: 1
type: integer
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,7 @@ spec:
type: object
type: object
replicas:
default: 1
minimum: 1
type: integer
resources:
Expand Down

0 comments on commit 901820a

Please sign in to comment.