-
Notifications
You must be signed in to change notification settings - Fork 39
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
Vm webhook limits #477
Vm webhook limits #477
Conversation
Codecov Report
@@ Coverage Diff @@
## master #477 +/- ##
==========================================
+ Coverage 82.29% 82.34% +0.04%
==========================================
Files 28 30 +2
Lines 3101 3160 +59
==========================================
+ Hits 2552 2602 +50
- Misses 419 426 +7
- Partials 130 132 +2
|
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.
Nice work!
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.
Looks good!
Looking forward to advanced e2e-tests though and also your ideas around how we can mitigate our risks of undetected braking CNV API changes... I don't have much to suggest :(
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexeykazakov, rajivnathan 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 |
a142fe4
into
codeready-toolchain:master
// This should be removed once https://issues.redhat.com/browse/CNV-32069 is complete. | ||
func ensureLimits(unstructuredObj *unstructured.Unstructured, patchItems []map[string]interface{}) []map[string]interface{} { | ||
|
||
requests, reqFound, err := unstructured.NestedStringMap(unstructuredObj.Object, "spec", "template", "spec", "domain", "resources", "requests") |
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.
I didn't know about this unstructured.NestedStringMap
function, it does exactly what we need 🎉.
It's really neat 👍
JIRA story: https://issues.redhat.com/browse/SANDBOX-362
e2e tests: codeready-toolchain/toolchain-e2e#809