Skip to content

Commit

Permalink
Paths added in validateMaxInitialScale func
Browse files Browse the repository at this point in the history
  • Loading branch information
yp969803 committed Jan 2, 2024
1 parent b106efa commit 2579cc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apis/autoscaling/annotation_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ func validateMaxInitialScale(config *autoscalerconfig.Config, m map[string]strin
}else if max<=0{
errs=errs.Also(&apis.FieldError{
Message: fmt.Sprintf("max-scale=%d should be greate than 0",max),
Paths: []string{MaxScaleAnnotationKey,InitialScaleAnnotationKey},
})
} else if initial > max {
errs = errs.Also(&apis.FieldError{
Expand Down

0 comments on commit 2579cc1

Please sign in to comment.