Skip to content

Commit

Permalink
prep
Browse files Browse the repository at this point in the history
  • Loading branch information
oksanabaza committed May 28, 2024
1 parent 043e787 commit 441b333
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/codeflare_sdk/utils/generate_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,10 @@ def _throw_for_no_raycluster( user_yaml: dict,
api_instance = client.CustomObjectsApi(api_config_handler())
try:
api_instance.list_namespaced_custom_object(
group="ray.io",
group="kueue.x-k8s.io",
version="v1",
namespace=namespace,
plural="rayclusters",
plural="localqueues",
)
except ApiException as e:
if e.status == 404:
Expand All @@ -348,7 +348,7 @@ def write_components(

components = user_yaml.get("spec", "resources")["resources"].get("GenericItems")
# check if RayCluster CustomResourceDefinition exists if not throw RuntimeError
_throw_for_no_raycluster()
_throw_for_no_raycluster(user_yaml,output_file_name,namespace,local_queue,labels)
# if local_queue is None:
# print(
# "Kueue is not installed or won't be used. The absence of CRDs may lack the necessary functionality."
Expand Down

0 comments on commit 441b333

Please sign in to comment.