thankful-musician-15476
06/14/2023, 11:31 PMimageName = <http://gcr.io/xxxxx/my-app:dd173278046fcc735e6bd5f884a42ace408775b3aea38431aafe9267a46647ba|gcr.io/xxxxx/my-app:dd173278046fcc735e6bd5f884a42ace408775b3aea38431aafe9267a46647ba>
v4: imageName = <http://gcr.io/xxxxx/my-app|gcr.io/xxxxx/my-app>
With this change, the resources that depend on the Docker image don’t get updated whenever the docker image is updated. That also breaks many of the examples provided by Pulumi that involve deploying a docker image to the cloud.
Is that intentional or it’s a bug?little-cartoon-10569
06/14/2023, 11:35 PMthankful-musician-15476
06/14/2023, 11:38 PMlittle-cartoon-10569
06/14/2023, 11:42 PMthankful-musician-15476
06/14/2023, 11:43 PMconst appImage = new docker.Image("app-image", {
imageName: `<http://gcr.io/${project}/${imageName}|gcr.io/${project}/${imageName}>`
}
const appService = new gcp.cloudrunv2.Service("app-service", {
location: location,
template: {
containers: [
{
image: appImage.imageName,
},
],
},
traffics: [
{
type: "TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST",
percent: 100,
},
],
}, {
dependsOn: [appImage],
});
appService
resource to be updated when appImage
is updatedlittle-cartoon-10569
06/14/2023, 11:45 PMthankful-musician-15476
06/14/2023, 11:46 PMappImage
gets updated, but appService
doesn’t get updated at alllittle-cartoon-10569
06/14/2023, 11:53 PMthankful-musician-15476
06/14/2023, 11:55 PMappImage.repoDigest
won’t work with dependsOn because it’s not a resourcewhite-balloon-205
repoDigest
is a valid fully qualified image name - so you should be able to pass that directly instead of imageName
to get the behavior you are looking for here. The name is slightly unusual, but derived from the term the Docker API uses to refer to this.thankful-musician-15476
06/15/2023, 1:18 AM