Skip to content

Commit

Permalink
Remove autoscaling targets when min-scale is equal to max-scale, closes
Browse files Browse the repository at this point in the history
  • Loading branch information
brmzkw committed Feb 5, 2024
1 parent 6fc19c5 commit c332baa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v3.8.0 (unreleased)

* `koyeb service update`: remove autoscaling targets when --min-scale is equal to --max-scale
- https://github.com/koyeb/koyeb-cli/issues/182

## v3.7.1

* Add `koyeb db update <name> --instance-type <type>` to update the instance type of a database
Expand Down
2 changes: 1 addition & 1 deletion pkg/koyeb/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ func parseScalings(flags *pflag.FlagSet, currentScalings []koyeb.DeploymentScali
// because NewDeploymentScalingTarget{AverageCPU,AverageMem,RequestsPerSecond}
// do not implement a common interface.
func setScalingsTargets(flags *pflag.FlagSet, scaling *koyeb.DeploymentScaling) {
if scaling.Targets == nil {
if scaling.Targets == nil || scaling.GetMin() == scaling.GetMax() {
scaling.Targets = []koyeb.DeploymentScalingTarget{}
}

Expand Down

0 comments on commit c332baa

Please sign in to comment.