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

fixed resource quota update issue when resource is updated to decrease #35

Merged
merged 3 commits into from
Oct 19, 2018

Conversation

pdgetrf
Copy link

@pdgetrf pdgetrf commented Oct 17, 2018

  1. Fixed the issue when pod resource is updated to decrease, resource quota is not updated immediately
  2. Added missing feature gate
  3. Added unit tests

Also tested e2e on local environment

@pdgetrf pdgetrf self-assigned this Oct 17, 2018
@pdgetrf pdgetrf changed the title fixed the issue when pod resource is updated to decrease, resource quota fixed resource quota update issue when resource is updated to decrease Oct 17, 2018
api.ResourceMemory: resource.MustParse("53Gi"),
api.ResourcePods: resource.MustParse("4"),
api.ResourceMemory: resource.MustParse("60Gi"),
api.ResourcePods: resource.MustParse("3"),
Copy link
Member

Choose a reason for hiding this comment

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

why does this change from 4 to 3?

Copy link
Author

Choose a reason for hiding this comment

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

fixed

Used: api.ResourceList{
api.ResourceCPU: resource.MustParse("1100m"),
api.ResourceMemory: resource.MustParse("52Gi"),
api.ResourcePods: resource.MustParse("3"),
Copy link
Member

Choose a reason for hiding this comment

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

same here. this should be 4 isnt it?

Copy link
Author

Choose a reason for hiding this comment

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

fixed

Copy link
Member

@vinaykul vinaykul left a comment

Choose a reason for hiding this comment

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

lgtm. couple of questions in the unit tests

@vinaykul vinaykul merged commit c5e6e0f into vertical-scaling Oct 19, 2018
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.

2 participants