-
Notifications
You must be signed in to change notification settings - Fork 204
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
feat: Support PodRequests calculations for initContainers with restar… #569
Conversation
Also for test I would need to change podOptions interface a bit since with the current one it can't take multiple initContainers |
Will rework on this after latest k8s packages pr gets merged since it conflicts with this |
thank you @jonathan-innis , working on them |
Hi @jonathan-innis , Tried meeting those test requirements + additionally corrected logic and it passed the tests + tried to adapt to our existing Ceiling function structure + tried to make it as clean as possible. Please have a look |
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.
Just stopping by with a review. No need to block on me
Done |
77e263c
to
38c58b8
Compare
Pull Request Test Coverage Report for Build 6688219087
💛 - Coveralls |
Can we make sure we benchmark the scheduling performance before this is merged? |
pkg/controllers/provisioning/scheduling/provisioner_instance_selection_test.go
Outdated
Show resolved
Hide resolved
pkg/controllers/provisioning/scheduling/provisioner_instance_selection_test.go
Outdated
Show resolved
Hide resolved
Applied @jonathan-innis |
This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity. |
@sadath-12 Looking for a rebase so that we can run the CI checks. PR is looking like it's in a good state and we can consider merging after we get a pass across the checks. |
Merged it @jonathan-innis , is it fine since it looked much easier |
pkg/controllers/provisioning/scheduling/instance_selection_test.go
Outdated
Show resolved
Hide resolved
Done |
Signed-off-by: sadath-12 <[email protected]>
Signed-off-by: sadath-12 <[email protected]>
Signed-off-by: sadath-12 <[email protected]>
Signed-off-by: sadath-12 <[email protected]>
Signed-off-by: sadath-12 <[email protected]>
Signed-off-by: sadath-12 <[email protected]>
6562ff8
to
f8f556d
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jonathan-innis, sadath-12 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Finally time has come |
A couple of small things, once those are taken care of this gets an lgtm from me. |
a531596
to
d622740
Compare
d622740
to
c9638a4
Compare
/lgtm |
/unhold |
Fixes #479
Description
PodRequests calculations now also consider sidecar feature as introduced in v1.28 , hence also updating our
k8s.io/client-go
andk8s.io/api/core/v1
to latest version .This pr is inspired from upstream k8s https://github.com/kubernetes/kubernetes/blob/e2afa175e4077d767745246662170acd86affeaf/pkg/api/v1/resource/helpers.go#L96
How was this change tested?
make presubmit
Ran this as a separate demo file comparing with the existing calculations done
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.