Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions src/codeflare_sdk/utils/generate_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down