Add new types KeyValueLabels and KeyValueAnnotations#8519
Conversation
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 143 insertions(+), 7 deletions(-)) |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 151 insertions(+), 8 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 16 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDataSourceComputeAddresses|TestAccBigQueryDataTable_bigtable|TestAccBigQueryDataset_bigqueryDatasetDefaultCollationSetExample|TestAccBigQueryDataset_bigqueryDatasetWithMaxTimeTravelHoursExample|TestAccBigQueryDataset_bigqueryDatasetCaseInsensitiveNamesExample|TestAccBigQueryDataset_storageBillModel|TestAccBigQueryDataset_regionalLocation|TestAccBigQueryDataset_access|TestAccBigQueryDataset_bigqueryDatasetAuthorizedDatasetExample|TestAccBigQueryDataset_withProvider5|TestAccBigQueryDataset_bigqueryDatasetBasicExample|TestAccBigQueryDataset_datasetWithContents|TestAccComputeAddress_networkTier_withLabels|TestAccComputeAddress_networkTier|TestAccComputeAddress_networkTier_withProvider5|TestAccBigQueryDataset_basic |
|
Rerun these tests in REPLAYING mode to catch issues
Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer.
|
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 7 files changed, 204 insertions(+), 44 deletions(-)) |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 9 files changed, 298 insertions(+), 48 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccComputeAddress_networkTier_withLabels|TestAccBigQueryDataset_basic |
|
Rerun these tests in REPLAYING mode to catch issues$\textcolor{green}{\textsf{All tests passed!}} |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 286 insertions(+), 48 deletions(-)) |
Tests analyticsTotal tests:
|
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 286 insertions(+), 48 deletions(-)) |
Tests analyticsTotal tests:
|
|
TestAccComputeAddress_networkTier_withProvider5 passed locally. |
rileykarson
left a comment
There was a problem hiding this comment.
Made a first pass! Can we target this against the 5.0.0 branch now that that exists?
| organize and group your datasets | ||
| default_from_api: true | ||
|
|
||
| **Note**: This field does not list all labels present on the resource in GCP. |
There was a problem hiding this comment.
Here & others: Let's use the term "authoritative", since we use it in https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_project_iam (and all other IAM pages).
Something like: "This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.`
(effective_labels is output-only, so it's not entirely correct to call it authoritative)
Changed the base branch to 5.0.0 |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 204 insertions(+), 47 deletions(-)) |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 204 insertions(+), 47 deletions(-)) |
Tests analyticsTotal tests:
|
There was a problem hiding this comment.
No concerns on my end, but not reviewing to approve as I'm about to go OOO. Adding @c2thorn as reviewer as I'll be out and they're the likely reviewer for subsequent changes
| end | ||
|
|
||
| def build_effective_labels_field(name, min_version) | ||
| description = "All of #{name} (key/value pairs)\ |
There was a problem hiding this comment.
Should this be consistent w/ handwritten fields?
There was a problem hiding this comment.
Yes, it should. Will use this description for all of the effective_labels/effective_annotations field.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 204 insertions(+), 47 deletions(-)) |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 204 insertions(+), 47 deletions(-)) |
Tests analyticsTotal tests:
|
|
Seems good on initial review. Can we get entries on the main branch for the 5.0.0 upgrade guide explaining any breaking changes and manual steps user's will need to take as they upgrade? |
Thanks for the reminder. Created the PR-8608 to add the first version of guide for labels. Will add more details to the guide with more PRs being pushed to the 5.0.0 branch. |
* Add new type KeyValueLabels * Use KeyValueLabels in resource google_compute_address * func access_path in type * Add new type KeyValueAnnotations * Add new type KeyValueAnnotations * Fix the syntax error * Modify descriptions for labels field * Fix tests * Only read labels fingerprint when set labels * Remove version check * Fix tgc * Refactor code * Remove logger * New function properities_with_excluded * Address comments * Revert the TGC changes * Fix rake syntax errors * Fix the bug to set labels in the state * Type transform
Add the new type KeyValueLables and KeyValueAnnotations, which will trigger to add the field
effective_labelsoreffective_annotaitonsto the properties.If this PR is for Terraform, I acknowledge that I have:
make testandmake lintin the generated providers to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)