Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

annotations are not created after b/g deployment #530

Open
sleungcy opened this issue Sep 18, 2023 · 1 comment
Open

annotations are not created after b/g deployment #530

sleungcy opened this issue Sep 18, 2023 · 1 comment
Labels

Comments

@sleungcy
Copy link
Collaborator

sleungcy commented Sep 18, 2023

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

How to replicate:

  • Update an existing application artifact path
  • Update an existing application annotations

What I see after terraform plan

  • The plan output states the application artifact path is going to be updated
  • The plan output states the application annotation is going to be updated

What I expect after terraform apply

  • The apply completes successfully
  • The application is launched and running the new artifact
  • The application annotation is updated

What I see after terraform apply

  • The apply completes successfully ✅
  • The application is launched and running the new artifact ✅
  • The application annotation is unset ❌

What I see after terraform plan again

  • The plan output states the application annotation is going to be updated

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

@loafoe loafoe added the bug label Oct 2, 2023
@LitschiW
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants