I'm using GCP cloudrun service, and I've set the r...
# google-cloud
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
with the IgnoreChanges resource option, I do however sometime run into the following error:
Copy code
  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.
When this happens again, can you please open a github issue here: https://github.com/pulumi/pulumi/issues
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.
I did little search on slack... I'm happy i'm not the only one: https://github.com/pulumi/pulumi-kubernetes/issues/1075