torchx-nightly 2024.7.22__py3-none-any.whl → 2024.7.24__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of torchx-nightly might be problematic. Click here for more details.
- torchx/schedulers/kubernetes_mcad_scheduler.py +2 -0
- torchx/schedulers/kubernetes_scheduler.py +27 -3
- {torchx_nightly-2024.7.22.dist-info → torchx_nightly-2024.7.24.dist-info}/METADATA +1 -1
- {torchx_nightly-2024.7.22.dist-info → torchx_nightly-2024.7.24.dist-info}/RECORD +8 -8
- {torchx_nightly-2024.7.22.dist-info → torchx_nightly-2024.7.24.dist-info}/LICENSE +0 -0
- {torchx_nightly-2024.7.22.dist-info → torchx_nightly-2024.7.24.dist-info}/WHEEL +0 -0
- {torchx_nightly-2024.7.22.dist-info → torchx_nightly-2024.7.24.dist-info}/entry_points.txt +0 -0
- {torchx_nightly-2024.7.22.dist-info → torchx_nightly-2024.7.24.dist-info}/top_level.txt +0 -0
|
@@ -169,6 +169,17 @@ ANNOTATION_ISTIO_SIDECAR = "sidecar.istio.io/inject"
|
|
|
169
169
|
|
|
170
170
|
LABEL_INSTANCE_TYPE = "node.kubernetes.io/instance-type"
|
|
171
171
|
|
|
172
|
+
# role.env translates to static env variables in the yaml
|
|
173
|
+
# {"FOO" : "bar"} =====> - name: FOO
|
|
174
|
+
# value: bar
|
|
175
|
+
# unless this placeholder is present at the start of the role.env value then the env variable
|
|
176
|
+
# in the yaml will be dynamically populated at runtime (placeholder is stripped out of the value)
|
|
177
|
+
# {"FOO" : "[FIELD_PATH]bar"} =====> - name: FOO
|
|
178
|
+
# valueFrom:
|
|
179
|
+
# fieldRef:
|
|
180
|
+
# fieldPath: bar
|
|
181
|
+
PLACEHOLDER_FIELD_PATH = "[FIELD_PATH]"
|
|
182
|
+
|
|
172
183
|
|
|
173
184
|
def sanitize_for_serialization(obj: object) -> object:
|
|
174
185
|
from kubernetes import client
|
|
@@ -183,7 +194,9 @@ def role_to_pod(name: str, role: Role, service_account: Optional[str]) -> "V1Pod
|
|
|
183
194
|
V1ContainerPort,
|
|
184
195
|
V1EmptyDirVolumeSource,
|
|
185
196
|
V1EnvVar,
|
|
197
|
+
V1EnvVarSource,
|
|
186
198
|
V1HostPathVolumeSource,
|
|
199
|
+
V1ObjectFieldSelector,
|
|
187
200
|
V1ObjectMeta,
|
|
188
201
|
V1PersistentVolumeClaimVolumeSource,
|
|
189
202
|
V1Pod,
|
|
@@ -303,9 +316,20 @@ def role_to_pod(name: str, role: Role, service_account: Optional[str]) -> "V1Pod
|
|
|
303
316
|
image=role.image,
|
|
304
317
|
name=name,
|
|
305
318
|
env=[
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
319
|
+
(
|
|
320
|
+
V1EnvVar(
|
|
321
|
+
name=name,
|
|
322
|
+
value_from=V1EnvVarSource(
|
|
323
|
+
field_ref=V1ObjectFieldSelector(
|
|
324
|
+
field_path=value.strip(PLACEHOLDER_FIELD_PATH)
|
|
325
|
+
)
|
|
326
|
+
),
|
|
327
|
+
)
|
|
328
|
+
if value.startswith(PLACEHOLDER_FIELD_PATH)
|
|
329
|
+
else V1EnvVar(
|
|
330
|
+
name=name,
|
|
331
|
+
value=value,
|
|
332
|
+
)
|
|
309
333
|
)
|
|
310
334
|
for name, value in role.env.items()
|
|
311
335
|
],
|
|
@@ -72,8 +72,8 @@ torchx/schedulers/devices.py,sha256=RjVcu22ZRl_9OKtOtmA1A3vNXgu2qD6A9ST0L0Hsg4I,
|
|
|
72
72
|
torchx/schedulers/docker_scheduler.py,sha256=IrDlmeH-tg_f3krA04Y81nK9dmuYfEPbYOuCjSQkIHA,16541
|
|
73
73
|
torchx/schedulers/gcp_batch_scheduler.py,sha256=dlUfvjfMuQiRcSXQAdwxqdadwPhOf82L5u-ejRWtFgE,16226
|
|
74
74
|
torchx/schedulers/ids.py,sha256=3E-_vwVYC-8Tv8kjuY9-W7TbOe_-Laqd8a65uIN3hQY,1798
|
|
75
|
-
torchx/schedulers/kubernetes_mcad_scheduler.py,sha256=
|
|
76
|
-
torchx/schedulers/kubernetes_scheduler.py,sha256=
|
|
75
|
+
torchx/schedulers/kubernetes_mcad_scheduler.py,sha256=OydTS_ObvVFSuo3utidmSQjK6Yzzqus19bMH-5LLY_M,42900
|
|
76
|
+
torchx/schedulers/kubernetes_scheduler.py,sha256=wruPyQGpXgWZ5WzM8qIGzgLx97qxU6nBeQ5trJNWWXU,28172
|
|
77
77
|
torchx/schedulers/local_scheduler.py,sha256=1xAEAymKqhxYYll4JmKNPWkIGSSro_2JxyLVOisiWTs,41428
|
|
78
78
|
torchx/schedulers/lsf_scheduler.py,sha256=FhpI8KgYKySz6xMTLmy0IcesJk2SpJ_no-iRzpqV0Wk,17653
|
|
79
79
|
torchx/schedulers/ray_scheduler.py,sha256=unnDtDu1rPpCLJLDcm4NYRo9ZCCtQgG5BtlHwVfly-U,17448
|
|
@@ -113,9 +113,9 @@ torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,
|
|
|
113
113
|
torchx/workspace/api.py,sha256=1heBmPgB-W5Zf9gwViM7NrqvHpZlVYeMN7jpY8Qkytc,5479
|
|
114
114
|
torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
|
|
115
115
|
torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
|
|
116
|
-
torchx_nightly-2024.7.
|
|
117
|
-
torchx_nightly-2024.7.
|
|
118
|
-
torchx_nightly-2024.7.
|
|
119
|
-
torchx_nightly-2024.7.
|
|
120
|
-
torchx_nightly-2024.7.
|
|
121
|
-
torchx_nightly-2024.7.
|
|
116
|
+
torchx_nightly-2024.7.24.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
|
|
117
|
+
torchx_nightly-2024.7.24.dist-info/METADATA,sha256=AajreHmv02QyZHRyTSp3-JY4mPX_S4guimgzvHMP6ew,6216
|
|
118
|
+
torchx_nightly-2024.7.24.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
119
|
+
torchx_nightly-2024.7.24.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
|
|
120
|
+
torchx_nightly-2024.7.24.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
|
|
121
|
+
torchx_nightly-2024.7.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|