truefoundry 0.3.1__py3-none-any.whl → 0.3.2__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.

@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: application.json
3
- # timestamp: 2024-08-29T07:46:00+00:00
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: constr(regex=r"^dynamic$") = Field(
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: constr(regex=r"^manual$") = Field(..., description="+value=manual")
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: constr(regex=r"^scheduled$") = Field(..., description="+value=scheduled")
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: constr(regex=r"^static$") = Field(
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: constr(regex=r"^codeserver$") = Field(..., description="+value=Code Server")
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
- service_account: Optional[str] = Field(
1238
- None, description="+label=Service Account\n+sort=400"
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: constr(regex=r"^helm$") = Field(..., description="+value=helm")
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: constr(regex=r"^job$") = Field(..., description="+value=job")
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: constr(regex=r"^notebook$") = Field(..., description="+value=notebook")
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
- service_account: Optional[str] = Field(
1506
- None, description="+label=Service Account\n+sort=400"
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: constr(regex=r"^ssh-server$") = Field(..., description="+value=SSH Server")
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: constr(regex=r"^volume$") = Field(..., description="+value=volume")
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: constr(regex=r"^application-set$") = Field(
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",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: truefoundry
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Truefoundry CLI
5
5
  Author: Abhishek Choudhary
6
6
  Author-email: abhishek@truefoundry.com
@@ -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=dSdqqor8TcbZzBAsqJnvOpeArWD7K15DCE9QwYJH8kg,78708
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
@@ -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.1.dist-info/METADATA,sha256=yVpfvpY3Hqp1pXxQ8XdDgSdpNle2XjHJYWFKVALUtSQ,2690
134
- truefoundry-0.3.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
135
- truefoundry-0.3.1.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
136
- truefoundry-0.3.1.dist-info/RECORD,,
133
+ truefoundry-0.3.2.dist-info/METADATA,sha256=gUrAlvlOkQE9AwfRsYRDRTOTH9N6hDS1pgRGemzQbEk,2690
134
+ truefoundry-0.3.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
135
+ truefoundry-0.3.2.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
136
+ truefoundry-0.3.2.dist-info/RECORD,,