Skip to content

Commit c99424e

Browse files
Ygnasopenshift-merge-bot[bot]
authored andcommitted
Fix for cases without default localqueue
1 parent b782a4a commit c99424e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/codeflare_sdk/cluster/cluster.py

+3
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,9 @@ def from_k8_cluster_object(
541541
mcad=mcad,
542542
write_to_file=write_to_file,
543543
verify_tls=verify_tls,
544+
local_queue=rc["metadata"]
545+
.get("labels", dict())
546+
.get("kueue.x-k8s.io/queue-name", None),
544547
)
545548
return Cluster(cluster_config)
546549

0 commit comments

Comments
 (0)