Quick (maybe easy question): I manage a Google Cl...
# google-cloud
b
Quick (maybe easy question): I manage a Google Cloud Run service with Pulumi. At some point, changes to the container image it uses stopped updating traffic to the revision made in the Cloud Run service. This
apply
runs in Circle CI (which will install the latest providers), has there been a change in the provider around updating the traffic to newly created revisions? Thanks!
FYI I am using
gcp.cloudrunv2.Service
…and from the docs…
Copy code
traffics
ServiceTraffic[]
Specifies how to distribute traffic over a collection of Revisions belonging to the Service. If traffic is empty or not provided, defaults to 100% traffic to the latest Ready Revision.
I am leaving this empty.
…also… in the output, the
traffics
value still shows the previous revision, not the curren deployed one.
a
Did you by any chance update traffic yourself outside Pulumi? By default, Google Cloud routes traffic to the latest revision. But, if you manually update traffic or an active revision yourself, it will keep that active until you change traffic again yourself. You can “reset” this behaviour by running the command below;
Copy code
gcloud run services update-traffic myservice --to-latest
https://cloud.google.com/run/docs/rollouts-rollbacks-traffic-migration#split-lifecycle
b
I will give that a try, thanks! TIL!