cloudfoundry-community / terraform-provider-cloudfoundry

Terraform Cloud Foundry Provider
https://registry.terraform.io/providers/cloudfoundry-community/cloudfoundry/latest
Mozilla Public License 2.0
73 stars 86 forks source link

annotations are not created after b/g deployment #530

Open sleungcy opened 1 year ago

sleungcy commented 1 year ago

I am having an issue with deploying a blue/green application update along with annotation changes.

How to replicate:

What I see after terraform plan

What I expect after terraform apply

What I see after terraform apply

What I see after terraform plan again

I believe this issue originates from https://github.com/cloudfoundry/cli/blob/main/resources/metadata_resource.go#L6 missing definition for annotations, but it's unclear to me why annotation is not part of metadata_resource

LitschiW commented 10 months ago

We do have a very similar problem, without a bg deployment strategy. For us, attributes are only updated on a second or sometimes even third run of terraform apply. The update is planned correctly and the apply runs without an error.