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

Fix empty labels handling in Cluster resource #2441

Merged
merged 6 commits into from
Sep 25, 2024

Conversation

VenelinMartinov
Copy link
Contributor

This fixes the empty label handling in the GCP Cluster resource.

In the fix for #2372 (#2386 and pulumi/pulumi-terraform-bridge#2417) we did not know that the labels property in GCP is sometimes overloaded, ex GCP Custer.

For the Cluster resource, the GCP labels are under resource_labels, not labels

This PR adds the logic to the empty labels fix and adds a regression test.

fixes #2395

Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

@VenelinMartinov VenelinMartinov enabled auto-merge (squash) September 25, 2024 15:49
@VenelinMartinov VenelinMartinov added the needs-release/patch When a PR with this label merges, it initiates a release of vX.Y.Z+1 label Sep 25, 2024
@VenelinMartinov
Copy link
Contributor Author

@iwahbe I've removed the recorded initial preview output as it seems to be non-deterministic and not strictly necessary for the regression test: https://github.com/pulumi/pulumi-gcp/actions/runs/11036213803/job/30655036675

@VenelinMartinov VenelinMartinov merged commit c55b95a into master Sep 25, 2024
23 checks passed
@VenelinMartinov VenelinMartinov deleted the vvm/fix_empty_labels_in_cluster branch September 25, 2024 17:11
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v8.3.1.

@github-actions github-actions bot removed the needs-release/patch When a PR with this label merges, it initiates a release of vX.Y.Z+1 label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permadiff in pulumiLabels and effectiveLabels with empty labels for gcp:container:Cluster
3 participants