Skip to content

Commit

Permalink
feat: allow specifying args in deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Oct 16, 2023
1 parent 97fee89 commit dbeecaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions transpire/resources/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def __init__(
name: str,
image: str,
ports: List[Union[str, int]],
*,
args: List[str] | None = None,
):
self.obj = client.V1Deployment(
api_version="apps/v1",
Expand All @@ -31,6 +33,7 @@ def __init__(
name="main",
image=image,
image_pull_policy="IfNotPresent",
args=args,
ports=[
client.V1ContainerPort(container_port=x)
for x in ports
Expand Down

0 comments on commit dbeecaf

Please sign in to comment.