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

private endpoint services: support all clouds #189

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

carloruiz
Copy link
Contributor

@carloruiz carloruiz commented Mar 15, 2024

Previously, the private_endpoint_services resource only supported the creation of AWS private endpoint services. This commit removes this restriction, now all clouds are supported. Additionally this commit fixes a bug that caused the private_endpoint_service resource to be created without the resource state being loaded into the state file. Lastly, this commit bumps the CRDB version used for testing.

Commit checklist

  • Changelog
  • Doc gen (make generate)
  • Integration test(s)
  • Acceptance test(s)
  • Example(s)

@carloruiz
Copy link
Contributor Author

acceptance test

COCKROACH_API_KEY=<key> COCKROACH_SERVER=https://management-staging.crdb.io make testacc 
TF_ACC=1 go test ./... -run TestAccDedicatedPrivateEndpointServicesResource -v  -timeout 40m -parallel 100
?   	github.com/cockroachdb/terraform-provider-cockroach	[no test files]
?   	github.com/cockroachdb/terraform-provider-cockroach/mock	[no test files]
=== RUN   TestAccDedicatedPrivateEndpointServicesResource
=== PAUSE TestAccDedicatedPrivateEndpointServicesResource
=== CONT  TestAccDedicatedPrivateEndpointServicesResource
--- PASS: TestAccDedicatedPrivateEndpointServicesResource (1292.04s)
PASS
ok  	github.com/cockroachdb/terraform-provider-cockroach/internal/provider	1292.485s

@carloruiz
Copy link
Contributor Author

carloruiz commented Mar 15, 2024

There were some failures in the acceptance tests ran against prod with the tag v1.3.2, so the release was not done.

This commit fixes the acceptance test failures and updates the CHANGELOG to include this PR's changes into the v1.3.2 release. Once this PR is merged, I will move the tag to the resulting SHA and restart the pre-release process.

Jira ticket with bug info CC-27459

Copy link
Collaborator

@fantapop fantapop left a comment

Choose a reason for hiding this comment

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

I'm pretty excited to get rid of this AWS specific stuff. Thanks for doing this and for continuing to provide backwards compatibility for now.

internal/provider/private_endpoint_services_resource.go Outdated Show resolved Hide resolved
internal/provider/private_endpoint_services_resource.go Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
internal/provider/private_endpoint_services_resource.go Outdated Show resolved Hide resolved
internal/provider/private_endpoint_services_resource.go Outdated Show resolved Hide resolved
Previously, the private_endpoint_services resource only supported the
creation of AWS private endpoint services. This commit removes this
restriction, now all clouds are supported. Additionally this commit
fixes a bug that caused the private_endpoint_service resource to be
created without the resource state being loaded into the state file.
Lastly, this commit bumps the CRDB version used for testing.
Copy link
Collaborator

@fantapop fantapop left a comment

Choose a reason for hiding this comment

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

nice. LGTM

@carloruiz
Copy link
Contributor Author

TFTR!

@carloruiz carloruiz merged commit f641a7e into main Mar 15, 2024
3 checks passed
@carloruiz carloruiz deleted the private-endpoint-services branch March 15, 2024 18:16
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.

2 participants