diff --git a/coverage.svg b/coverage.svg index a8c7e72a..607d3de4 100644 --- a/coverage.svg +++ b/coverage.svg @@ -15,7 +15,7 @@ coverage coverage - 92% - 92% + 91% + 91% diff --git a/src/codeflare_sdk/utils/generate_yaml.py b/src/codeflare_sdk/utils/generate_yaml.py index 2ea6dd78..2fc6b48f 100755 --- a/src/codeflare_sdk/utils/generate_yaml.py +++ b/src/codeflare_sdk/utils/generate_yaml.py @@ -30,6 +30,7 @@ from os import urandom from base64 import b64encode from urllib3.util import parse_url +from kubernetes.client.rest import ApiException def read_template(template): @@ -345,9 +346,14 @@ def write_components( lq_name = local_queue or get_default_kueue_name(namespace) cluster_labels = labels if not local_queue_exists(namespace, lq_name): - raise ValueError( - "local_queue provided does not exist or is not in this namespace. Please provide the correct local_queue name in Cluster Configuration" - ) + if lq_name is None: + print( + "Kueue is not installed or won't be used. The absence of CRDs may lack the necessary functionality." + ) + else: + raise ValueError( + "local_queue provided does not exist or is not in this namespace. Please provide the correct local_queue name in Cluster Configuration" + ) with open(output_file_name, "a") as outfile: for component in components: if "generictemplate" in component: