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

Allow resource limits and requests to be over-riden for clusterBootstrapController #3575

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

madAndroid
Copy link
Contributor

What changed?

This is to address OOM issues seen by Hitachi in the following interlock ticket: https://github.com/weaveworks/weave-gitops-interlock/issues/592

Why was this change made?

The current limits and requests are quite low, and are hard coded - they cannot be easily overriden, so allowing these values to be exposed for configuration via Helm values.

How was this change implemented?

Set new default values for the Helm Chart in values.yaml, and configured the values in the deployment based on these values.

How did you validate the change?

  • Explain how a reviewer can verify the change themselves

Build a new helm chart release, and set the values in the release to anything other than the new defaults, and make sure a provisioned implementation of the chart provisions these overrides.

  • Integration tests -- what is covered, what cannot be covered;
    or, explain why there are no new tests

  • Unit tests -- what is covered, what cannot be covered; are
    there tests that fail without the change?

Other follow ups

@madAndroid madAndroid added area/helm-chart enhancement New feature or request labels Oct 31, 2023
Copy link
Contributor

@bigkevmcd bigkevmcd left a comment

Choose a reason for hiding this comment

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

I'm ok with this, but I think it can be better.

I'd prefer if it was just resources.limits: {} and resources.requests: {} which would let the container use the defaults?

It would still be easy enough to configure the pod via the values?

This would then allow it to be controlled via a LimitRange too?

@bigkevmcd
Copy link
Contributor

I'm ok with this, but I think it can be better.

For clarity, I'm ok with merging it, the fact that it can be better doesn't mean it should be.

@bigkevmcd bigkevmcd merged commit 62ac673 into main Nov 1, 2023
10 checks passed
@bigkevmcd bigkevmcd deleted the interlock-592-Hitachi-65447069 branch November 1, 2023 05:22
@madAndroid
Copy link
Contributor Author

I'm ok with this, but I think it can be better.
I'd prefer if it was just resources.limits: {} and resources.requests: {} which would let the container use the defaults?
It would still be easy enough to configure the pod via the values?
This would then allow it to be controlled via a LimitRange too?

Yes, that's fair enough - my aim with this change was to persist the previous behaviour, so that there would be a seamless change for anyone upgrading, without having to set the values themselves.
One to revisit at some point, if it becomes necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm-chart enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants