-
Notifications
You must be signed in to change notification settings - Fork 56
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(charts): add resource requests to chart #311
Conversation
Thanks for the contribution! Please ensure your commits follow our style guide. This code will be tested once a Deis maintainer reviews it. |
Could you amend the commit message to follow the commit style guide? That way it will get picked up by Jenkins, add to whitelist. |
d08dc6c
to
cd551e3
Compare
Codecov Report@@ Coverage Diff @@
## master #311 +/- ##
=======================================
Coverage 55.69% 55.69%
=======================================
Files 6 6
Lines 386 386
=======================================
Hits 215 215
Misses 151 151
Partials 20 20 Continue to review full report at Codecov.
|
cd551e3
to
f9eecb5
Compare
This change allows router resource requests to be specified in addition to the existing limits templates, allowing for easy use with a horizontal pod autoscaler.
f9eecb5
to
74449a6
Compare
fixed, thank you @mboersma |
@@ -32,16 +32,28 @@ spec: | |||
- name: deis-router | |||
image: quay.io/{{.Values.org}}/router:{{.Values.docker_tag}} | |||
imagePullPolicy: {{.Values.pull_policy}} | |||
{{- if or (.Values.limits_cpu) (.Values.limits_memory)}} | |||
{{- if or (.Values.limits_cpu) (.Values.limits_memory) (.Values.requests_cpu) (.Values.requests_memory)}} |
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.
or
can take more than two arguments?
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've tested this manually and it looks like the |
thank you @mboersma! |
resources.requests
, the HPA can't calculate aCURRENT
value