-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom autoscaler #815
Custom autoscaler #815
Conversation
… custom-autoscaler
… custom-autoscaler
… custom-autoscaler
pkg/operator/operator/autoscaler.go
Outdated
} | ||
|
||
if len(output.MetricDataResults[0].Timestamps) == 0 { | ||
return nil, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe return error here instead of nil, like metrics are not available yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is the message that is shown when nil is returned, is that ok? Or did you intend to explicitly return an error?
} | ||
|
||
if timestampCounter == -1 { | ||
return nil, nil // no metrics were available in the last 2 tick intervals |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe return err here indicating metrics were not found?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as above
closes #573
checklist:
make test
andmake lint
summary.md
(view in gitbook after merging)