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

Enabling empty value send for fleet default member config in google_gke_hub_feature #10963

Merged
merged 68 commits into from
Jun 19, 2024

Conversation

sahsagar-google
Copy link
Member

Fixes hashicorp/terraform-provider-google#18441

Release Note Template for Downstream PRs (will be copied)

gkehub: allowed `google_gke_hub_feature` field to send empty values for its field `fleet_default_member_config`

sahsagar-google and others added 30 commits July 19, 2023 19:04
@github-actions github-actions bot requested a review from SarahFrench June 14, 2024 01:20
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@SarahFrench, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 2 files changed, 45 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 2 files changed, 45 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 1 insertion(+), 1 deletion(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 23
Passed tests: 13
Skipped tests: 10
Affected tests: 0

Click here to see the affected service packages
  • gkehub2

$\textcolor{green}{\textsf{All tests passed!}}$
View the build log

Copy link
Contributor

@SarahFrench SarahFrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's currently a failing test related to the terraform-google-conversion project - see here: https://github.com/GoogleCloudPlatform/magic-modules/actions/runs/9509187749/job/26211722803

        read_test.go:239: TestReadPlannedAssetsCoverage/example_gke_hub_feature diff(-want, +got):
              []caiasset.Asset{
              	{
              		Name: "//gkehub.googleapis.com/projects/foobar/locations/global/feature"...,
              		Type: "gkehub.googleapis.com/Feature",
              		Resource: &caiasset.AssetResource{
              			... // 2 identical fields
              			DiscoveryName: "Feature",
              			Parent:        "//cloudresourcemanager.googleapis.com/projects/foobar",
              			Data: map[string]any{
            + 				"fleetDefaultMemberConfig": nil,
              				"labels":                   map[string]any{"foo": string("bar")},
              			},
              		},
              		IAMPolicy: nil,
              		OrgPolicy: nil,
              		... // 2 identical fields
              	},
              }
FAIL

I think the resolution is to update tgc/tests/data/example_gke_hub_feature.json to add "fleetDefaultMemberConfig": null, - could you please try?

@github-actions github-actions bot requested a review from SarahFrench June 14, 2024 17:55
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 2 files changed, 45 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 2 files changed, 45 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 3 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 23
Passed tests: 13
Skipped tests: 10
Affected tests: 0

Click here to see the affected service packages
  • gkehub2

$\textcolor{green}{\textsf{All tests passed!}}$
View the build log

@sahsagar-google
Copy link
Member Author

@SarahFrench I made the suggested changes. Are the tests passing now? Please let me know if anything else is required. Thank you again!

Copy link

@SarahFrench This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link
Contributor

@SarahFrench SarahFrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing that test!

@SarahFrench SarahFrench merged commit 89adfa7 into GoogleCloudPlatform:main Jun 19, 2024
14 checks passed
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Jun 24, 2024
pcostell pushed a commit to pcostell/magic-modules that referenced this pull request Jul 16, 2024
vijaykanthm pushed a commit to vijaykanthm/magic-modules that referenced this pull request Jul 22, 2024
Charlesleonius pushed a commit to Charlesleonius/magic-modules that referenced this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

google_gke_hub_feature: User cannot unset fleet default member config in TF
3 participants