-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add rate limit options for compute resource security policy rules #5413
Add rate limit options for compute resource security policy rules #5413
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Oops! It looks like you're using an unknown release-note type in your changelog entries:
Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md. |
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. |
@googlebot I signed it! |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform Beta: Diff ( 2 files changed, 202 insertions(+), 11 deletions(-)) |
Hi, could I get some help with building/running tests on this? Trying to do either throws errors with output that looks like this:
However, if you visit https://pkg.go.dev/google.golang.org/api/compute/v0.beta#SecurityPolicyRule , you can see that |
…responding field values
Oops! It looks like you're using an unknown release-note type in your changelog entries:
Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md. |
Oops! It looks like you're using an unknown release-note type in your changelog entries:
Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md. |
Bumping this to get a set of eyes on it for review |
mmv1/third_party/terraform/resources/resource_compute_security_policy.go.erb
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/resources/resource_compute_security_policy.go.erb
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/resources/resource_compute_security_policy.go.erb
Show resolved
Hide resolved
…rval_sec, as well as conform_action and exceed_action fields if opting to use rate_limit_options
Looks like we're seeing compile errors:
|
I think the cause of the error has been fixed (I think it was being run in the GA provider, where the field wasn't added?) /gcbrun |
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic|TestAccApigeeEnvironmentIamBindingGenerated|TestAccApigeeEnvironmentIamMemberGenerated|TestAccApigeeEnvironmentIamPolicyGenerated|TestAccCloudRunService_cloudRunServiceSecretVolumesExample|TestAccCloudbuildWorkerPool_basic|TestAccInstanceGroupManager_waitForStatus|TestAccComputeRegionBackendService_withBackendInternalManaged|TestAccComputeSecurityPolicy_withRateLimitOptions|TestAccContainerNodePool_withInvalidUpgradeSettings|TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample|TestAccPrivatecaCertificate_privatecaCertificateConfigExample|TestAccPrivatecaCertificate_privatecaCertificateNoAuthorityExample You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=243882 |
@rileykarson any ideas to help get my local working to run tests? looks like we're still failing |
I'm not sure what's causing the issues you ran in to- I'd make sure your copies of both repos are relatively in sync,
|
mmv1/third_party/terraform/resources/resource_compute_security_policy.go.erb
Outdated
Show resolved
Hide resolved
…ort for exceed_redirect_optionss
@rileykarson I figured out my local env (woo!) and these tests are running successfully now. Can you try to kick off gbcrun? |
mmv1/third_party/terraform/resources/resource_compute_security_policy.go.erb
Outdated
Show resolved
Hide resolved
/gcbrun |
Looks like the tests timed out because the agent was full- started a manual run (https://ci-oss.hashicorp.engineering/buildConfiguration/GoogleCloudBeta_ProviderGoogleCloudBetaMmUpstream/246237 for my convenience, although that'll be access restricted for you) |
/gcbrun |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 2 files changed, 33 insertions(+), 1 deletion(-)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test passed, LGTM
Reference for maintainers: https://ci-oss.hashicorp.engineering/buildConfiguration/GoogleCloudBeta_ProviderGoogleCloudBetaMmUpstream/250520?buildTab=tests&status=passed
…ogleCloudPlatform#5413) Co-authored-by: Riley Karson <[email protected]>
…ogleCloudPlatform#5413) Co-authored-by: Riley Karson <[email protected]>
…ogleCloudPlatform#5413) Co-authored-by: Riley Karson <[email protected]>
…ogleCloudPlatform#5413) Co-authored-by: Riley Karson <[email protected]>
This PR is based off of hashicorp/terraform-provider-google-beta#3596 and includes the requested changes from that PR's feedback
Fixes hashicorp/terraform-provider-google#10020
Similar to hashicorp/terraform-provider-google#8984
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)