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

default_snat_status attribute added #3758

Conversation

venkykuberan
Copy link
Contributor

Release Note Template for Downstream PRs (will be copied)

Cluster: added default_snat_status for `google_container_cluster` resource

reference: hashicorp/terraform-provider-google#6465

@google-cla google-cla bot added the cla: yes label Jul 20, 2020
@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review.

Thanks for your contribution! A human will be with you soon.

@ndmckinley, please review this PR or find an appropriate assignee.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 2 files changed, 17 insertions(+), 9 deletions(-))
Terraform Beta: Diff ( 2 files changed, 90 insertions(+), 8 deletions(-))

Copy link
Contributor

@nat-henderson nat-henderson left a comment

Choose a reason for hiding this comment

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

Is there a test that can be reasonably added to this?

@@ -3170,6 +3234,16 @@ func flattenClusterTelemetry(c *containerBeta.ClusterTelemetry) []map[string]int
return result
}

func flattenDefaultSnatStatus(c *containerBeta.DefaultSnatStatus) []map[string]interface{} {
result := []map[string]interface{}{}
if c != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to return disabled: true if c == nil, it helps plan make better decisions. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that makes the default value as disabled: true, right ?. What if i don't want to set the attribute if its not in the config ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added tests for this attribute.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 20 insertions(+), 9 deletions(-))
Terraform Beta: Diff ( 3 files changed, 97 insertions(+), 9 deletions(-))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=134419"

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 20 insertions(+), 9 deletions(-))
Terraform Beta: Diff ( 3 files changed, 97 insertions(+), 9 deletions(-))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=134554"

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccContainerCluster_withPrivateClusterConfigMissingCidrBlock|TestAccEndpointsService_basic|TestAccFolderIamAuditConfig_multiple|TestAccServiceAccountIamBinding_withAndWithoutCondition|TestAccServiceAccountIamMember_withAndWithoutCondition You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=134556"

Copy link
Contributor

@nat-henderson nat-henderson left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@danawillow
Copy link
Contributor

I think this PR is causing VCR test failures. @venkykuberan , can you double check? The error is:

------- Stdout: -------
=== RUN   TestAccContainerCluster_withPrivateClusterConfigMissingCidrBlock
=== PAUSE TestAccContainerCluster_withPrivateClusterConfigMissingCidrBlock
=== CONT  TestAccContainerCluster_withPrivateClusterConfigMissingCidrBlock
TestAccContainerCluster_withPrivateClusterConfigMissingCidrBlock: testing.go:667: Step 0, expected error:
config is invalid: Unsupported block type: Blocks of type "default_snat_status" are not expected here.
To match:
master_ipv4_cidr_block must be set if enable_private_nodes == true
--- FAIL: TestAccContainerCluster_withPrivateClusterConfigMissingCidrBlock (0.33s)
FAIL

and since this is a VCR test failure, it's happening in the GA provider.

@nat-henderson
Copy link
Contributor

Ah, shoot, I looked here: https://ci-oss.hashicorp.engineering/buildConfiguration/GoogleCloud_ProviderGoogleCloudMmUpstreamVcr/134556? to make sure it was passing! :(

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

Successfully merging this pull request may close these issues.

4 participants