@@ -96,20 +96,6 @@ def update_image_pull_secrets(spec, image_pull_secrets):
96
96
]
97
97
98
98
99
- def update_volume_mounts (spec , volume_mounts : list ):
100
- containers = spec .get ("containers" )
101
- for volume_mount in volume_mounts :
102
- for container in containers :
103
- volumeMount = client .ApiClient ().sanitize_for_serialization (volume_mount )
104
- container ["volumeMounts" ].append (volumeMount )
105
-
106
-
107
- def update_volumes (spec , volumes : list ):
108
- for volume in volumes :
109
- new_volume = client .ApiClient ().sanitize_for_serialization (volume )
110
- spec ["volumes" ].append (new_volume )
111
-
112
-
113
99
def update_env (spec , env ):
114
100
containers = spec .get ("containers" )
115
101
for container in containers :
@@ -150,8 +136,6 @@ def update_nodes(
150
136
head_cpus ,
151
137
head_memory ,
152
138
head_gpus ,
153
- volumes ,
154
- volume_mounts ,
155
139
):
156
140
head = cluster_yaml .get ("spec" ).get ("headGroupSpec" )
157
141
head ["rayStartParams" ]["num-gpus" ] = str (int (head_gpus ))
@@ -166,8 +150,6 @@ def update_nodes(
166
150
167
151
for comp in [head , worker ]:
168
152
spec = comp .get ("template" ).get ("spec" )
169
- update_volume_mounts (spec , volume_mounts )
170
- update_volumes (spec , volumes )
171
153
update_image_pull_secrets (spec , image_pull_secrets )
172
154
update_image (spec , image )
173
155
update_env (spec , env )
@@ -298,8 +280,6 @@ def generate_appwrapper(
298
280
write_to_file : bool ,
299
281
local_queue : Optional [str ],
300
282
labels ,
301
- volumes : list [client .V1Volume ],
302
- volume_mounts : list [client .V1VolumeMount ],
303
283
):
304
284
cluster_yaml = read_template (template )
305
285
appwrapper_name , cluster_name = gen_names (name )
@@ -319,8 +299,6 @@ def generate_appwrapper(
319
299
head_cpus ,
320
300
head_memory ,
321
301
head_gpus ,
322
- volumes ,
323
- volume_mounts ,
324
302
)
325
303
augment_labels (cluster_yaml , labels )
326
304
notebook_annotations (cluster_yaml )
0 commit comments