From a7dcc3b68290297e0dda19031d15830243364e00 Mon Sep 17 00:00:00 2001 From: Thomas Meckel Date: Sat, 6 Jul 2024 14:50:47 +0000 Subject: [PATCH] fix: using pulumi.InvokeOptions insted of pulumi.ResourceOptions for pulumi_docker.get_registry_image --- stack/cloud_run_images.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/stack/cloud_run_images.py b/stack/cloud_run_images.py index 6d8b0398..1b243efe 100644 --- a/stack/cloud_run_images.py +++ b/stack/cloud_run_images.py @@ -1,5 +1,5 @@ -"""images for cloud run -""" +"""images for cloud run""" + import pulumi import pulumi_docker as docker import pulumi_gcp as gcp @@ -20,21 +20,27 @@ def construct_name_images(resource_name: str) -> str: cloud_run_offset_tile_registry_image = docker.get_registry_image( name=gcp.container.get_registry_image( - name=construct_name_images("cloud-run-offset-tile-image:latest") + name=construct_name_images("cloud-run-offset-tile-image:latest"), ).image_url, - opts=pulumi.ResourceOptions(provider=gcr_docker_provider), + opts=pulumi.InvokeOptions( + provider=gcr_docker_provider, + ), ) cloud_run_orchestrator_registry_image = docker.get_registry_image( name=gcp.container.get_registry_image( - name=construct_name_images("cloud-run-orchestrator-image:latest") + name=construct_name_images("cloud-run-orchestrator-image:latest"), ).image_url, - opts=pulumi.ResourceOptions(provider=gcr_docker_provider), + opts=pulumi.InvokeOptions( + provider=gcr_docker_provider, + ), ) cloud_run_tipg_registry_image = docker.get_registry_image( name=gcp.container.get_registry_image( - name=construct_name_images("cloud-run-tipg-image:latest") + name=construct_name_images("cloud-run-tipg-image:latest"), ).image_url, - opts=pulumi.ResourceOptions(provider=gcr_docker_provider), + opts=pulumi.InvokeOptions( + provider=gcr_docker_provider, + ), )