Skip to content

Commit

Permalink
✨ upgrade to new resources API
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiljha committed Apr 28, 2024
1 parent 10d7c8e commit b483c7f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .transpire.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,10 @@ def objects():

# This will create a container, and watch it if it dies to continually
# restart it. Here we use a custom command, via the .patch() functionality.
yield (
Deployment(
name=name,
image=image,
ports=[8080],
)
.with_configmap_env(name)
.with_secrets_env(name)
deploy_outline = Deployment(
name=name,
image=image,
ports=[8080],
).patch(
surgery.make_edit_manifest(
{
Expand All @@ -100,7 +96,9 @@ def objects():
]
}
)
).build()
)
deploy_outline.pod_spec().with_configmap_env(name).with_secrets_env(name)
yield deploy_outline

yield Service(
name="outline-web",
Expand Down

0 comments on commit b483c7f

Please sign in to comment.