Skip to content

Commit dfafdcb

Browse files
authored
Merge pull request #615 from AI-Hypercomputer/tas-support
Add TAS support for workloads on DWS clusters
2 parents 28e63cb + c818306 commit dfafdcb

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/xpk/commands/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def is_TAS_possible(
7171
xpk_print('capacity_type data was not found in configmaps.')
7272
xpk_exit(1)
7373

74-
if flex:
74+
if not flex:
7575
return False
7676

7777
if (

src/xpk/commands/workload.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@
226226
metadata:
227227
labels:
228228
xpk.google.com/workload: {args.workload}
229-
annotations: {annotations}
229+
annotations:
230+
{annotations}
230231
spec:
231232
priorityClassName: {args.priority}
232233
restartPolicy: Never

src/xpk/core/kueue.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@
8989
name: dws-config
9090
spec:
9191
provisioningClassName: queued-provisioning.gke.io
92+
podSetUpdates:
93+
nodeSelector:
94+
- key: autoscaling.gke.io/provisioning-request
95+
valueFromProvisioningClassDetail: ResizeRequestName
9296
managedResources:
9397
- {managed_resource}
9498
---

0 commit comments

Comments
 (0)