https://pulumi.com logo
#google-cloud
Title
# google-cloud
c

creamy-engine-1851

12/09/2020, 9:14 PM
I'm using GCP cloudrun service, and I've set the resource up with Pulumi. I also have cloudbuild pipelines that update the cloudrun services with new images. To avoid the diff when I run
pulumi up
I've added
template.spec.containers[0].image
with the IgnoreChanges resource option, I do however sometime run into the following error:
Copy code
Diagnostics:
  gcp:cloudrun:Service (xxx-cloudrun):
    error: cannot ignore changes to the following properties because one or more elements of the path are missing: "template.spec.containers[0].image"
pulumi refresh
does not help, the only way to get past this message is to remove the IgnoreChanges option, but that will deploy incorrect image to the service.
c

cool-fireman-90027

12/11/2020, 2:04 PM
When this happens again, can you please open a github issue here: https://github.com/pulumi/pulumi/issues
c

creamy-engine-1851

12/11/2020, 2:52 PM
Thanks, I will do that. I'm having the issue all the time, as a work around I have removed the IgnoreChanges, and defined image: <image_url:latest> to always update with the latest image on
pulumi up
. It's however a hacky solution that updates the template spec. And I need to do a pulumi refresh each time.
b

bland-lamp-16797

02/03/2021, 5:46 PM
I did little search on slack... I'm happy i'm not the only one: https://github.com/pulumi/pulumi-kubernetes/issues/1075