-
Notifications
You must be signed in to change notification settings - Fork 52
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
Handle new default label #2357
Comments
…ename the key of this default label. Fixes #2357.
Update here. Provider setting is a config value rename in resources.go: Label itself is a patch: However, we do see some unexpected behavior under certain conditions. Running a simple storage.Bucket Import is affected - when importing a resource, this label is suggested in the import code. Adding or removing it, however, has no effect on the presence of the label. The only way to remove this label from the cloud resource is to set Sample code:
hashicorp/terraform-provider-google/issues/19323 has revealed this to be a Terraform core bug that for them only appears if you set Labels in an output block, and they suggest giving a default label as a workaround. On our end, it appears that our detailed diff output is our downfall - terraform only shows an anonymous diff on I wonder if #1946 is involved here - I will verify if this behavior replicates for resources other than Bucket. |
Update: It is definitely the Bucket patch that is causing this. A Compute Instance does not have this issue. |
…ename the key of this default label. Fixes #2357.
Hm, the patch fix is now resulting in a diff on |
It turned out that the conditions set in An extra check for label key = Finally, the randomized labels tests are verifying against |
Added to epic #2290 |
…ename the key of this default label. Fixes #2357.
This issue has been addressed in PR #2355 and shipped in release v8.0.0. |
Upstream has added a new default attribution label.
Currently tests on
storage.Bucket
(but only Bucket) are failing due to a bug (also present upstream) on that resource:pulumi up
successfully creates bucket and adds default labelgoog-terraform-provisioned
pulumi up
shows a diff on the (non-authoritative)labels
field, alerting the user thatlabels
has a diff on it and will removegoog-terraform-provisioned: true
.pulumiLabels and
effectiveLabelsare unchanged and continue to display the
goog-terraform-provisioned` label.It appears that Bucket is the only resource affected in this way. Upstream issue is filed
In the meantime, we'll want to explore user-friendly workarounds for this resource:
pulumi up
will have a spurious diffWe also want to explore if and how we'd like to rename this label on our users' behalf, for clarity.
The text was updated successfully, but these errors were encountered: