diff --git a/.transpire.py b/.transpire.py index a5441d4..8db28e1 100644 --- a/.transpire.py +++ b/.transpire.py @@ -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( { @@ -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",