File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ def create_app_wrapper(self):
152
152
write_to_file = self .config .write_to_file
153
153
local_queue = self .config .local_queue
154
154
labels = self .config .labels
155
+ kueue = self .config .kueue
155
156
return generate_appwrapper (
156
157
name = name ,
157
158
namespace = namespace ,
@@ -172,6 +173,7 @@ def create_app_wrapper(self):
172
173
write_to_file = write_to_file ,
173
174
local_queue = local_queue ,
174
175
labels = labels ,
176
+ kueue = kueue ,
175
177
)
176
178
177
179
# creates a new cluster with the provided or default spec
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ class ClusterConfiguration:
60
60
write_to_file : bool = False
61
61
verify_tls : bool = True
62
62
labels : dict = field (default_factory = dict )
63
+ kueue : bool = True
63
64
64
65
def __post_init__ (self ):
65
66
if not self .verify_tls :
Original file line number Diff line number Diff line change @@ -294,6 +294,7 @@ def generate_appwrapper(
294
294
write_to_file : bool ,
295
295
local_queue : Optional [str ],
296
296
labels ,
297
+ kueue : bool ,
297
298
):
298
299
cluster_yaml = read_template (template )
299
300
appwrapper_name , cluster_name = gen_names (name )
@@ -323,7 +324,8 @@ def generate_appwrapper(
323
324
else cluster_yaml
324
325
)
325
326
326
- add_queue_label (user_yaml , namespace , local_queue )
327
+ if kueue :
328
+ add_queue_label (user_yaml , namespace , local_queue )
327
329
328
330
if write_to_file :
329
331
directory_path = os .path .expanduser ("~/.codeflare/resources/" )
You can’t perform that action at this time.
0 commit comments