-
Notifications
You must be signed in to change notification settings - Fork 15
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: resource requirements #83
Conversation
5369350
to
4f7df34
Compare
4f7df34
to
c1ea432
Compare
Codecov Report
@@ Coverage Diff @@
## main #83 +/- ##
==========================================
+ Coverage 43.31% 49.87% +6.56%
==========================================
Files 11 12 +1
Lines 718 812 +94
==========================================
+ Hits 311 405 +94
Misses 369 369
Partials 38 38
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
abd3000
to
7ef1644
Compare
defaultResourceRequirements = &corev1.ResourceRequirements{ | ||
Requests: corev1.ResourceList{ | ||
corev1.ResourceCPU: resource.MustParse("250m"), | ||
corev1.ResourceMemory: resource.MustParse("32Mi"), | ||
}, | ||
Limits: corev1.ResourceList{ | ||
corev1.ResourceCPU: resource.MustParse("500m"), | ||
corev1.ResourceMemory: resource.MustParse("64Mi"), | ||
}, | ||
} | ||
) |
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.
Based on #74
78f0803
to
293ce1d
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.
Most of this looks good to me, there is a few questions in the comments.
On the point of making the assumption that container will be the first in the list is a concern. I have tried adding other containers to the deployment and the operator allows it to happen. When the extra container is the first in the list the operator rewrites the configuration to what we expect the configuration to be. It does not change the name of the container and leaves the old container there. If the extra container is added in the second position on the list the operator will leave the configuration on changed. This is possible a large issue and effects more than just this PR.
@@ -0,0 +1,76 @@ | |||
# Resource Requirements | |||
|
|||
The default resource requirement for _**Limitador**_ deployments is specified in [Limitador v1alpha1 API reference](../api/v1alpha1/limitador_types.go) |
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.
If I understand how Kuadrant.io is working, this file will be included in the documentation. My concern is the Limitador v1alpha1 API reference
link will be a broken link on the site. Do you know if this is the case.
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.
No, I don't know will this be the case
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.
These links used to work fine... and should still in the new website, but I haven't checked explicitly. Tho I know authorino uses relative links like these a lot, and these were fine on docs.kuadrant.io
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 have noticed we don't document the API. Is this the best place of the resource requirements or should there be a more targeted API documentation?
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'm not sure tbh, I'm just matching https://github.com/Kuadrant/limitador-operator/blob/main/doc/storage.md which documents Storage
seperately 🤷
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.
Are the (authorino|limitador)-operator docs on the website? quickly looking I couldn't find them 🤔
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.
63a0bf9
to
3449a78
Compare
3449a78
to
12485ea
Compare
Rebased with main to resolve conflict |
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
good job
12485ea
to
5554b69
Compare
Rebased with main to resolve conflict again |
Description
/api
Closes: #74
Verification
Functionality is generally tested by the included tests already but you can run through the following for a more thorough verification:
nil