Skip to content

Commit e86d1eb

Browse files
committed
fix: duplicate creating k8s pod volumes
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent 5729275 commit e86d1eb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

gpustack_runtime/deployer/kuberentes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,13 @@ def _create_pod(
921921
),
922922
]
923923

924+
# Parameterize volumes
925+
self._append_pod_volumes(
926+
pod,
927+
workload,
928+
ephemeral_filename_mapping,
929+
)
930+
924931
cnt_init, cnt_run = -1, -1
925932
for ci, c in enumerate(workload.containers):
926933
# Annotate container info.
@@ -1064,13 +1071,6 @@ def _create_pod(
10641071
requests=(resources if resources else None),
10651072
)
10661073

1067-
# Parameterize volumes
1068-
self._append_pod_volumes(
1069-
pod,
1070-
workload,
1071-
ephemeral_filename_mapping,
1072-
)
1073-
10741074
# Parameterize mounts
10751075
self._append_container_volume_mounts(
10761076
container,

0 commit comments

Comments
 (0)