-
Notifications
You must be signed in to change notification settings - Fork 185
feat(helm): add affinity and tolerations to epp-deployment #1504
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -87,3 +87,11 @@ spec: | |||||
| - name: plugins-config-volume | ||||||
| configMap: | ||||||
| name: {{ include "gateway-api-inference-extension.name" . }} | ||||||
| {{- with .Values.inferenceExtension.affinity }} | ||||||
| affinity: | ||||||
| {{- toYaml . | nindent 8 }} | ||||||
| {{- end }} | ||||||
| {{- with .Values.inferenceExtension.tolerations }} | ||||||
|
||||||
| {{- with .Values.inferenceExtension.tolerations }} | |
| {{- if .Values.inferenceExtension.tolerations }} |
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.
Fixed here as well.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,10 @@ inferenceExtension: | |
| - name: v | ||
| value: 1 | ||
|
|
||
| affinity: {} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and then we can remove empty values of affinity and tolerations from values.yaml There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it should remain to show that |
||
|
|
||
| tolerations: [] | ||
|
|
||
| inferencePool: | ||
| targetPorts: | ||
| - number: 8000 | ||
|
|
||
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 replace the “with” with “if”?
Uh oh!
There was an error while loading. Please reload this page.
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.
.Values.inferenceExtension.extraContainerPortsand.Values.inferenceExtension.envalso usewith. Since this follows the same pattern, I’d suggest keeping it as is. Do you agree?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 be honest, I’d change those to using “if” as well. I less like the use of “placeholders” and empty vars in the values file.
I personally prefer to have these options well documented and removed when not used.
I’ll defer to @kfswain to get his opinion.
Uh oh!
There was an error while loading. Please reload this page.
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.
d6f2bcc
I modified it to use
ifinstead ofwith.