File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 3030from os import urandom
3131from base64 import b64encode
3232from urllib3 .util import parse_url
33+ from kubernetes .client .rest import ApiException
3334
3435
3536def read_template (template ):
@@ -343,6 +344,10 @@ def write_components(
343344 components = user_yaml .get ("spec" , "resources" )["resources" ].get ("GenericItems" )
344345 open (output_file_name , "w" ).close ()
345346 lq_name = local_queue or get_default_kueue_name (namespace )
347+ if lq_name is None :
348+ print (
349+ "Kueue is not installed or won't be used. The absence of CRDs may lack the necessary functionality."
350+ )
346351 cluster_labels = labels
347352 if not local_queue_exists (namespace , lq_name ):
348353 raise ValueError (
@@ -378,6 +383,10 @@ def load_components(
378383 component_list = []
379384 components = user_yaml .get ("spec" , "resources" )["resources" ].get ("GenericItems" )
380385 lq_name = local_queue or get_default_kueue_name (namespace )
386+ if lq_name is None :
387+ print (
388+ "Kueue is not installed or won't be used. The absence of CRDs may lack the necessary functionality."
389+ )
381390 cluster_labels = labels
382391 if not local_queue_exists (namespace , lq_name ):
383392 raise ValueError (
You can’t perform that action at this time.
0 commit comments