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

address min CPU bug #289

Merged
merged 2 commits into from
Sep 10, 2018
Merged

address min CPU bug #289

merged 2 commits into from
Sep 10, 2018

Conversation

brendanmcfarland
Copy link
Contributor

Correcting faulty logic in the current cpu if statement:

Developers often put cpu: cf.ref('CPUParameter'); which currently results in a container reservation of 128 no matter what is specified in cf.ref('CPUParameter')

Logic around options.reservation.cpu is now:

  • if options.reservation.cpu is not set, it will be set at 128
  • if options.reservation.cpu is a number, and it's less than 128, it will be set to 128

Added a snapshot with a ref, without cpu set, and with cpu as a number.

cc: @jakepruitt @rclark

Copy link

@jakepruitt jakepruitt left a comment

Choose a reason for hiding this comment

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

Looks good to me!

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.

None yet

2 participants