truefoundry 0.3.0rc15__py3-none-any.whl → 0.3.1rc1__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 truefoundry might be problematic. Click here for more details.
- truefoundry/deploy/auto_gen/models.py +20 -18
- truefoundry/deploy/v2/lib/deploy.py +10 -3
- {truefoundry-0.3.0rc15.dist-info → truefoundry-0.3.1rc1.dist-info}/METADATA +1 -1
- {truefoundry-0.3.0rc15.dist-info → truefoundry-0.3.1rc1.dist-info}/RECORD +6 -6
- {truefoundry-0.3.0rc15.dist-info → truefoundry-0.3.1rc1.dist-info}/WHEEL +0 -0
- {truefoundry-0.3.0rc15.dist-info → truefoundry-0.3.1rc1.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: application.json
|
|
3
|
-
# timestamp: 2024-
|
|
3
|
+
# timestamp: 2024-09-10T13:19:47+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -250,7 +250,7 @@ class DynamicVolumeConfig(BaseModel):
|
|
|
250
250
|
+label=Dynamic Volume Config
|
|
251
251
|
"""
|
|
252
252
|
|
|
253
|
-
type:
|
|
253
|
+
type: Literal["dynamic"] = Field(
|
|
254
254
|
...,
|
|
255
255
|
description="+label=Volume Type\n+value=dynamic\n+usage=Volume Type for the volume.",
|
|
256
256
|
)
|
|
@@ -494,7 +494,7 @@ class Manual(BaseModel):
|
|
|
494
494
|
+usage=Trigger the job manually. [Docs](https://docs.truefoundry.com/docs/deploy-a-cron-job)
|
|
495
495
|
"""
|
|
496
496
|
|
|
497
|
-
type:
|
|
497
|
+
type: Literal["manual"] = Field(..., description="+value=manual")
|
|
498
498
|
|
|
499
499
|
|
|
500
500
|
class NATSMetricConfig(BaseModel):
|
|
@@ -924,7 +924,7 @@ class Schedule(BaseModel):
|
|
|
924
924
|
+usage=Run the job on a schedule. [Docs](https://docs.truefoundry.com/docs/deploy-a-cron-job)
|
|
925
925
|
"""
|
|
926
926
|
|
|
927
|
-
type:
|
|
927
|
+
type: Literal["scheduled"] = Field(..., description="+value=scheduled")
|
|
928
928
|
schedule: str = Field(
|
|
929
929
|
...,
|
|
930
930
|
description="+docs=Specify the schedule for this job to be run periodically in cron format. [Learn more](https://docs.truefoundry.com/docs/deploy-a-cron-job)\n+usage=Specify the schedule for this job to be run periodically in cron format.\n```\n* * * * *\n| | | | |\n| | | | |___ day of week (0-6) (Sunday is 0)\n| | | |_____ month (1-12)\n| | |_______ day of month (1-31)\n| |_________ hour (0-23)\n|___________ minute (0-59)\n```",
|
|
@@ -963,7 +963,7 @@ class StaticVolumeConfig(BaseModel):
|
|
|
963
963
|
+label=Static Volume Config
|
|
964
964
|
"""
|
|
965
965
|
|
|
966
|
-
type:
|
|
966
|
+
type: Literal["static"] = Field(
|
|
967
967
|
...,
|
|
968
968
|
description="+label=Volume Type\n+value=static\n+usage=Volume Type for the volume.",
|
|
969
969
|
)
|
|
@@ -1216,7 +1216,7 @@ class Codeserver(BaseWorkbenchInput):
|
|
|
1216
1216
|
+docs=Describes the configuration for the code server
|
|
1217
1217
|
"""
|
|
1218
1218
|
|
|
1219
|
-
type:
|
|
1219
|
+
type: Literal["codeserver"] = Field(..., description="+value=Code Server")
|
|
1220
1220
|
image: WorkbenchImage
|
|
1221
1221
|
auth: Optional[BasicAuthCreds] = None
|
|
1222
1222
|
|
|
@@ -1234,9 +1234,11 @@ class ContainerTaskConfig(BaseModel):
|
|
|
1234
1234
|
description="+label=Environment Variables\n+usage=Configure environment variables to be injected in the task either as plain text or secrets. [Docs](https://docs.truefoundry.com/docs/env-variables)\n+icon=fa-globe\n+sort=200",
|
|
1235
1235
|
)
|
|
1236
1236
|
resources: Optional[Resources] = None
|
|
1237
|
-
|
|
1238
|
-
None,
|
|
1237
|
+
mounts: Optional[List[Union[SecretMount, StringDataMount, VolumeMount]]] = Field(
|
|
1238
|
+
None,
|
|
1239
|
+
description="+usage=Configure data to be mounted to Workflow pod(s) as a volume.\n+sort=400",
|
|
1239
1240
|
)
|
|
1241
|
+
service_account: str = Field(..., description="+label=Service Account\n+sort=500")
|
|
1240
1242
|
|
|
1241
1243
|
|
|
1242
1244
|
class CoreNATSOutputConfig(BaseModel):
|
|
@@ -1296,7 +1298,7 @@ class HealthProbe(BaseModel):
|
|
|
1296
1298
|
|
|
1297
1299
|
|
|
1298
1300
|
class Helm(BaseModel):
|
|
1299
|
-
type:
|
|
1301
|
+
type: Literal["helm"] = Field(..., description="+value=helm")
|
|
1300
1302
|
name: constr(regex=r"^[a-z][a-z0-9\-]{1,30}[a-z0-9]$") = Field(
|
|
1301
1303
|
...,
|
|
1302
1304
|
description="+sort=1\n+message=3 to 32 lower case characters long alphanumeric word, may contain - in between, cannot start with a number\n+usage=Name of the Helm deployment. This will be set as the release name of the chart you are deploying.",
|
|
@@ -1323,7 +1325,7 @@ class Job(BaseModel):
|
|
|
1323
1325
|
+docs=Describes the configuration for the job
|
|
1324
1326
|
"""
|
|
1325
1327
|
|
|
1326
|
-
type:
|
|
1328
|
+
type: Literal["job"] = Field(..., description="+value=job")
|
|
1327
1329
|
name: constr(regex=r"^[a-z][a-z0-9\-]{1,30}[a-z0-9]$") = Field(
|
|
1328
1330
|
...,
|
|
1329
1331
|
description="+usage=Name of the job\n+sort=1\n+message=3 to 32 lower case characters long alphanumeric word, may contain - in between, cannot start with a number",
|
|
@@ -1476,7 +1478,7 @@ class Notebook(BaseWorkbenchInput):
|
|
|
1476
1478
|
+docs=Describes the configuration for the service
|
|
1477
1479
|
"""
|
|
1478
1480
|
|
|
1479
|
-
type:
|
|
1481
|
+
type: Literal["notebook"] = Field(..., description="+value=notebook")
|
|
1480
1482
|
image: WorkbenchImage
|
|
1481
1483
|
auth: Optional[BasicAuthCreds] = None
|
|
1482
1484
|
cull_timeout: conint(ge=5) = Field(
|
|
@@ -1502,9 +1504,11 @@ class PythonTaskConfig(BaseModel):
|
|
|
1502
1504
|
description="+label=Environment Variables\n+usage=Configure environment variables to be injected in the task either as plain text or secrets. [Docs](https://docs.truefoundry.com/docs/env-variables)\n+icon=fa-globe\n+sort=200",
|
|
1503
1505
|
)
|
|
1504
1506
|
resources: Optional[Resources] = None
|
|
1505
|
-
|
|
1506
|
-
None,
|
|
1507
|
+
mounts: Optional[List[Union[SecretMount, StringDataMount, VolumeMount]]] = Field(
|
|
1508
|
+
None,
|
|
1509
|
+
description="+usage=Configure data to be mounted to Workflow pod(s) as a volume.\n+sort=400",
|
|
1507
1510
|
)
|
|
1511
|
+
service_account: str = Field(..., description="+label=Service Account\n+sort=500")
|
|
1508
1512
|
|
|
1509
1513
|
|
|
1510
1514
|
class SSHServer(BaseWorkbenchInput):
|
|
@@ -1512,7 +1516,7 @@ class SSHServer(BaseWorkbenchInput):
|
|
|
1512
1516
|
+docs=Describes the configuration for the ssh server
|
|
1513
1517
|
"""
|
|
1514
1518
|
|
|
1515
|
-
type:
|
|
1519
|
+
type: Literal["ssh-server"] = Field(..., description="+value=SSH Server")
|
|
1516
1520
|
image: WorkbenchImage
|
|
1517
1521
|
ssh_public_key: str = Field(
|
|
1518
1522
|
...,
|
|
@@ -1521,7 +1525,7 @@ class SSHServer(BaseWorkbenchInput):
|
|
|
1521
1525
|
|
|
1522
1526
|
|
|
1523
1527
|
class Volume(BaseModel):
|
|
1524
|
-
type:
|
|
1528
|
+
type: Literal["volume"] = Field(..., description="+value=volume")
|
|
1525
1529
|
name: constr(regex=r"^[a-z][a-z0-9\-]{1,30}[a-z0-9]$") = Field(
|
|
1526
1530
|
...,
|
|
1527
1531
|
description="+sort=1\n+message=3 to 32 lower case characters long alphanumeric word, may contain - in between, cannot start with a number\n+usage=Name of the Volume. This will be set as the volume name.",
|
|
@@ -1674,9 +1678,7 @@ class ApplicationSet(BaseModel):
|
|
|
1674
1678
|
+docs=Describes the configuration for the application set
|
|
1675
1679
|
"""
|
|
1676
1680
|
|
|
1677
|
-
type:
|
|
1678
|
-
..., description="+value=application-set"
|
|
1679
|
-
)
|
|
1681
|
+
type: Literal["application-set"] = Field(..., description="+value=application-set")
|
|
1680
1682
|
name: str = Field(
|
|
1681
1683
|
...,
|
|
1682
1684
|
description="+label=Name\n+usage=Name of the application set.\n+icon=fa-font",
|
|
@@ -247,9 +247,16 @@ def deploy_component(
|
|
|
247
247
|
)
|
|
248
248
|
component.workspace_fqn = workspace_fqn
|
|
249
249
|
workspace_id = get_workspace_by_fqn(workspace_fqn).id
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
if isinstance(component, auto_gen_models.ApplicationSet):
|
|
251
|
+
updated_component = component.copy(deep=True)
|
|
252
|
+
for i in range(len(updated_component.components)):
|
|
253
|
+
updated_component.components[i] = _handle_if_local_source(
|
|
254
|
+
component=component.components[i], workspace_fqn=workspace_fqn
|
|
255
|
+
)
|
|
256
|
+
else:
|
|
257
|
+
updated_component = _handle_if_local_source(
|
|
258
|
+
component=component, workspace_fqn=workspace_fqn
|
|
259
|
+
)
|
|
253
260
|
client = ServiceFoundryServiceClient()
|
|
254
261
|
response = client.deploy_application(
|
|
255
262
|
workspace_id=workspace_id, application=updated_component
|
|
@@ -26,7 +26,7 @@ truefoundry/autodeploy/utils/pydantic_compat.py,sha256=hEAUy5kLjhPdzw7yGZ2iXGMXb
|
|
|
26
26
|
truefoundry/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
truefoundry/cli/__main__.py,sha256=Jap_IddZ9zNyMIyIkCw75xHQCN0WtV2dPZJ_pzdLsVc,916
|
|
28
28
|
truefoundry/deploy/__init__.py,sha256=ugawKF2G02EmEXX35oZ2tec12d9oWN28Sf6mtGGIERY,2281
|
|
29
|
-
truefoundry/deploy/auto_gen/models.py,sha256=
|
|
29
|
+
truefoundry/deploy/auto_gen/models.py,sha256=cWY3KE-_NTPrDf1ywgUuOqqV31QQglUM1qeUGMj9mVU,78972
|
|
30
30
|
truefoundry/deploy/builder/__init__.py,sha256=a1qR6nicHGcxRaeNTxWRsmDs8zsmXc7j13-I8q0qqVk,4938
|
|
31
31
|
truefoundry/deploy/builder/builders/__init__.py,sha256=tlFLXqyDaKLd4iZbo4Hcu_8gOmgtL6drnXpbmQ6x1P8,636
|
|
32
32
|
truefoundry/deploy/builder/builders/dockerfile.py,sha256=AXXTziCkaqIhuM_bwyD1vT1znOwemN1TKgU7eyo-KuM,1522
|
|
@@ -102,7 +102,7 @@ truefoundry/deploy/lib/util.py,sha256=sNMv9peDU7RTCDaAfyWPpPpCs_WcZGqOvc13Jqx9y6
|
|
|
102
102
|
truefoundry/deploy/lib/win32.py,sha256=1RcvPTdlOAJ48rt8rCbE2Ufha2ztRqBAE9dueNXArrY,5009
|
|
103
103
|
truefoundry/deploy/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
104
104
|
truefoundry/deploy/v2/lib/__init__.py,sha256=WEiVMZXOVljzEE3tpGJil14liIn_PCDoACJ6b3tZ6sI,188
|
|
105
|
-
truefoundry/deploy/v2/lib/deploy.py,sha256=
|
|
105
|
+
truefoundry/deploy/v2/lib/deploy.py,sha256=o0bOpXuYV9-AvyMaTYnPc3Gy3vjeN3ZP7F8r3nFzxjk,12001
|
|
106
106
|
truefoundry/deploy/v2/lib/deploy_workflow.py,sha256=WhlrBuRf7r83qoQdTZSQzHt635fw9D4_qQIqusFWGag,12372
|
|
107
107
|
truefoundry/deploy/v2/lib/deployable_patched_models.py,sha256=YVeTiasyf0s-QXjDqdvGSmN83oVAQ0h9g6F687PJyVI,3141
|
|
108
108
|
truefoundry/deploy/v2/lib/models.py,sha256=pSolLMTArDuYpeNsmeeS5DWliloN_iCDfZSpRllMHUg,1120
|
|
@@ -130,7 +130,7 @@ truefoundry/workflow/map_task.py,sha256=2m3qGXQ90k9LdS45q8dqCCECc3qr8t2m_LMCVd1m
|
|
|
130
130
|
truefoundry/workflow/python_task.py,sha256=SRXRLC4vdBqGjhkwuaY39LEWN6iPCpJAuW17URRdWTY,1128
|
|
131
131
|
truefoundry/workflow/task.py,sha256=ToitYiKcNzFCtOVQwz1W8sRjbR97eVS7vQBdbgUQtKg,1779
|
|
132
132
|
truefoundry/workflow/workflow.py,sha256=WaTqUjhwfAXDWu4E5ehuwAxrCbDJkoAf1oWmR2E9Qy0,4575
|
|
133
|
-
truefoundry-0.3.
|
|
134
|
-
truefoundry-0.3.
|
|
135
|
-
truefoundry-0.3.
|
|
136
|
-
truefoundry-0.3.
|
|
133
|
+
truefoundry-0.3.1rc1.dist-info/METADATA,sha256=56HCDzmPyzpzpNnli7ky3o2nCp6UPEdrxRzlMKdxEk4,2693
|
|
134
|
+
truefoundry-0.3.1rc1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
135
|
+
truefoundry-0.3.1rc1.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
|
|
136
|
+
truefoundry-0.3.1rc1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|