Skip to content

Commit

Permalink
fix(scale): Correctly check for minimum warm/cool period (#1617)
Browse files Browse the repository at this point in the history
Reviewed-by: Alexander Jung <alex@unikraft.io>
Approved-by: Alexander Jung <alex@unikraft.io>
  • Loading branch information
nderjung committed Apr 29, 2024
2 parents 161334c + e874d79 commit ed67039
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/cli/kraft/cloud/scale/initialize/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ func (opts *InitOptions) Run(ctx context.Context, args []string) error {
id = conf.UUID
}

if opts.WarmupTime < time.Millisecond {
return fmt.Errorf("warmup time must be at least 1ms")
if opts.WarmupTime < 10*time.Millisecond {
return fmt.Errorf("warmup time must be at least 10ms")
}

if opts.CooldownTime < time.Millisecond {
return fmt.Errorf("cooldown time must be at least 1ms")
if opts.CooldownTime < 10*time.Millisecond {
return fmt.Errorf("cooldown time must be at least 10ms")
}

var master kcautoscale.CreateRequestMaster
Expand Down

0 comments on commit ed67039

Please sign in to comment.