-
Notifications
You must be signed in to change notification settings - Fork 207
Standardize inferencepool Helm templates and drop unnecessary tpl #1989
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tsj-30 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @tsj-30! |
|
Hi @tsj-30. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hey, @nirrozenbaum |
|
/ok-to-test |
|
/retest pull-gateway-api-inference-extension-test-unit-main |
|
@shmuelk: The Use DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/test pull-gateway-api-inference-extension-test-unit-main |
| {{- with .Values.inferenceExtension.sidecar.args }} | ||
| args: | ||
| {{- range . }} | ||
| - {{ tpl . $ | quote }} | ||
| - {{ . | quote }} | ||
| {{- end }} | ||
| {{- 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.
can we use the same pattern of epp cmd-line args?
see here (there it is called flags, but you can keep in your PR the use of the term args, I'm trying to scope this PR to helm chart standartization):
gateway-api-inference-extension/config/charts/inferencepool/templates/epp-deployment.yaml
Lines 100 to 103 in 0f0dff6
| {{- range $key, $value := .Values.inferenceExtension.flags }} | |
| - --{{ $key }} | |
| - "{{ $value }}" | |
| {{- end }} |
there are few more places in the yaml file that could be written using the same pattern
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 believe it terms of readability, the above pattern makes the templates easier for understanding and keeping it very simple.
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.
++ to Nir's comments, so long as that works here. Not sure if this needs to support env vars also, but perhaps we decompose that to something else anyways, so we can keep consistency with EPP container config
/kind cleanup
What this PR does / why we need it:
Standardizes the Helm template syntax within the inferencepool chart so every
toYamlinvocation uses the same pipeline style and we avoid unnecessarytplcalls. This makes the templates easier to read, review, and maintain while keeping the rendered manifests identical.Which issue(s) this PR fixes:
Fixes #1983
Does this PR introduce a user-facing change?: