Repository navigation
[CI] fix a5 multi resource #16107
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
[CI] fix a5 multi resource #16107
Changes from all commits
ec48a9e
94fe713
e08c7fb
6baf158
50c2ade
f358f46
4658b86
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 |
|---|---|---|
|
|
@@ -80,13 +80,13 @@ spec: | |
| "{{ max_good_age_days | default("3") }}" | ||
| resources: | ||
| limits: | ||
| {{ npu_resource_name | default("huawei.com/ascend-1980") }}: {{ npu_per_node | default("16") }} | ||
| memory: 512Gi | ||
| ephemeral-storage: 100Gi | ||
| huawei.com/ascend-1980: {{ npu_per_node | default("16") }} | ||
| requests: | ||
| {{ npu_resource_name | default("huawei.com/ascend-1980") }}: {{ npu_per_node | default("16") }} | ||
|
Contributor
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. In Jinja2, the |
||
| ephemeral-storage: 100Gi | ||
| cpu: 125 | ||
| huawei.com/ascend-1980: {{ npu_per_node | default("16") }} | ||
| ports: | ||
| - containerPort: 8080 | ||
| volumeMounts: | ||
|
|
@@ -177,13 +177,13 @@ spec: | |
| "{{ max_good_age_days | default("3") }}" | ||
| resources: | ||
| limits: | ||
| {{ npu_resource_name | default("huawei.com/ascend-1980") }}: {{ npu_per_node | default("16") }} | ||
|
Contributor
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. In Jinja2, the |
||
| memory: 512Gi | ||
| ephemeral-storage: 100Gi | ||
| huawei.com/ascend-1980: {{ npu_per_node | default("16") }} | ||
| requests: | ||
| {{ npu_resource_name | default("huawei.com/ascend-1980") }}: {{ npu_per_node | default("16") }} | ||
|
Contributor
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. In Jinja2, the |
||
| ephemeral-storage: 100Gi | ||
| cpu: 125 | ||
| huawei.com/ascend-1980: {{ npu_per_node | default("16") }} | ||
| volumeMounts: | ||
| - mountPath: /root/.cache | ||
| name: shared-volume | ||
|
|
||
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.
In Jinja2, the
defaultfilter only falls back to the default value if the variable is undefined. Ifnpu_resource_nameornpu_per_nodeare defined but passed as empty strings (e.g.,""), they will evaluate to empty strings, resulting in invalid YAML (e.g., an empty key or missing value underlimits:). Passingtrueas the second argument todefaultensures they fall back to their default values for empty strings or other falsy values.