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

Support LimitRange for current settings. #315

Open
MattPOlson opened this issue Jun 1, 2021 · 5 comments
Open

Support LimitRange for current settings. #315

MattPOlson opened this issue Jun 1, 2021 · 5 comments
Labels
enhancement Adding additional functionality or improvements pinned Prevents stalebot from removing

Comments

@MattPOlson
Copy link

I've deployed this to an OpenShift 4.6 cluster and if a pods limit/request comes from a LimitRange instead of being defined at the pod/deployment level it's current settings on the dashboard shows as "Not Set"

@sudermanjr sudermanjr added the enhancement Adding additional functionality or improvements label Jun 1, 2021
@sudermanjr sudermanjr changed the title Current Settings Not Being Shown Support LimitRange for current settings. Jun 1, 2021
@sudermanjr
Copy link
Member

I converted this to a feature request. LimitRanges are not currently something we support.

@MattPOlson
Copy link
Author

Thanks, would it be a big change? Could you point me where in the current code base it would need to be added and I could maybe take a look.

@sudermanjr
Copy link
Member

I honestly don't know how hard it would be. I haven't used LimitRanges much at all.

Here is where we pull the current requests and limits -

ContainerName: containerRecommendation.ContainerName,
UpperBound: utils.FormatResourceList(containerRecommendation.UpperBound),
LowerBound: utils.FormatResourceList(containerRecommendation.LowerBound),
Target: utils.FormatResourceList(containerRecommendation.Target),
UncappedTarget: utils.FormatResourceList(containerRecommendation.UncappedTarget),
Limits: utils.FormatResourceList(c.Resources.Limits),
Requests: utils.FormatResourceList(c.Resources.Requests),

Since it's based on the pod spec, I'm not sure how difficult it is going to be to bubble up the settings from the namespace-level object.

@stale
Copy link

stale bot commented Jul 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Marked as stale by stalebot label Jul 21, 2021
@sudermanjr sudermanjr added the pinned Prevents stalebot from removing label Jul 21, 2021
@stale stale bot removed the stale Marked as stale by stalebot label Jul 21, 2021
@divyanjali1
Copy link

@MattPOlson We are looking for a similar solution. Is there any workaround if the limits are taken from Namespace limitranges ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding additional functionality or improvements pinned Prevents stalebot from removing
Projects
None yet
Development

No branches or pull requests

3 participants