-
Notifications
You must be signed in to change notification settings - Fork 74
[BugFix] Allow to remove some resources limit, like cpu #426
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
[BugFix] Allow to remove some resources limit, like cpu #426
Conversation
{{- else if .Values.starrocksCnSpec.resource }} | ||
{{- include "starrockscluster.cn.resources" . | nindent 4 }} | ||
{{- end }} | ||
{{- if .Values.starrocksCnSpec.resource }} |
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.
should merge the two if
statements into a single if..end?
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.
committed
f871641
to
8ac069c
Compare
{{- define "starrockscluster.cn.resources" -}} | ||
resources: | ||
requests: | ||
{{- range $key, $value := .Values.starrocksCnSpec.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.
why not directly toYaml
here since there is no specific processing to the key/value.
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 special reason, just keep same with limits.
I will try to change to toYaml
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.
committed
Signed-off-by: yandongxiao <[email protected]>
8ac069c
to
65328f7
Compare
Related Issue(s)
Fixes: #422
Checklist
For helm chart, please complete the following checklist:
file of starrocks chart.
scripts
directory, runbash create-parent-chart-values.sh
to update the values.yaml file of the parentchart( kube-starrocks chart).