@@ -96,20 +96,6 @@ def update_image_pull_secrets(spec, image_pull_secrets):
9696 ]
9797
9898
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-
11399def update_env (spec , env ):
114100 containers = spec .get ("containers" )
115101 for container in containers :
@@ -150,8 +136,6 @@ def update_nodes(
150136 head_cpus ,
151137 head_memory ,
152138 head_gpus ,
153- volumes ,
154- volume_mounts ,
155139):
156140 head = cluster_yaml .get ("spec" ).get ("headGroupSpec" )
157141 head ["rayStartParams" ]["num-gpus" ] = str (int (head_gpus ))
@@ -166,8 +150,6 @@ def update_nodes(
166150
167151 for comp in [head , worker ]:
168152 spec = comp .get ("template" ).get ("spec" )
169- update_volume_mounts (spec , volume_mounts )
170- update_volumes (spec , volumes )
171153 update_image_pull_secrets (spec , image_pull_secrets )
172154 update_image (spec , image )
173155 update_env (spec , env )
@@ -298,8 +280,6 @@ def generate_appwrapper(
298280 write_to_file : bool ,
299281 local_queue : Optional [str ],
300282 labels ,
301- volumes : list [client .V1Volume ],
302- volume_mounts : list [client .V1VolumeMount ],
303283):
304284 cluster_yaml = read_template (template )
305285 appwrapper_name , cluster_name = gen_names (name )
@@ -319,8 +299,6 @@ def generate_appwrapper(
319299 head_cpus ,
320300 head_memory ,
321301 head_gpus ,
322- volumes ,
323- volume_mounts ,
324302 )
325303 augment_labels (cluster_yaml , labels )
326304 notebook_annotations (cluster_yaml )
0 commit comments