Skip to content
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

Merged
merged 79 commits into from
Feb 16, 2020
Merged

Custom autoscaler #815

merged 79 commits into from
Feb 16, 2020

Conversation

deliahu
Copy link
Member

@deliahu deliahu commented Feb 14, 2020

closes #573


checklist:

  • run make test and make lint
  • test manually (i.e. build/push all images, restart operator, and re-deploy APIs)
  • update examples
  • update docs and add any new files to summary.md (view in gitbook after merging)

@deliahu deliahu requested a review from vishalbollu February 14, 2020 20:52
}

if len(output.MetricDataResults[0].Timestamps) == 0 {
return nil, nil
Copy link
Contributor

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?

Copy link
Member Author

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
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request-based horizontal pod autoscaling
2 participants