-
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
Treat _Default & _Required Sinks same as buckets #9384
Conversation
Hello! I am a robot. It looks like you are a: Community Contributor @roaks3, 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. |
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.
I had a few nits on copy, but the code LGTM. Will wait on VCR tests to make sure.
mmv1/third_party/terraform/services/logging/resource_logging_project_sink.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/logging/resource_logging_project_sink.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/website/docs/r/logging_project_sink.html.markdown
Outdated
Show resolved
Hide resolved
/gcbrun |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 57 insertions(+), 15 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 13 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccBigQueryDatasetAccess_iamMember|TestAccLoggingProjectSink_disabled_update|TestAccLoggingProjectSink_updateBigquerySink|TestAccLoggingProjectSink_loggingbucket|TestAccLoggingProjectSink_heredoc|TestAccLoggingProjectSink_updatePreservesCustomWriter|TestAccLoggingProjectSink_default|TestAccLoggingProjectSink_disabled|TestAccLoggingProjectSink_described_update|TestAccLoggingProjectSink_basic|TestAccDataSourceGoogleLoggingSink_basic|TestAccLoggingProjectSink_described|TestAccLoggingProjectSink_updatePreservesUniqueWriter |
Rerun these tests in REPLAYING mode to catch issues
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 4 files changed, 60 insertions(+), 22 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 testsTestAccContainerAwsCluster_BetaBasicHandWritten|TestAccContainerAwsCluster_BetaBasicEnumHandWritten|TestAccLoggingProjectSink_default|TestAccLoggingOrganizationSink_update|TestAccLoggingFolderSink_update|TestAccLoggingFolderSink_removeOptionals|TestAccLoggingProjectSink_described_update|TestAccLoggingFolderSink_updateBigquerySink|TestAccLoggingProjectSink_disabled_update|TestAccLoggingProjectSink_updatePreservesCustomWriter|TestAccLoggingBillingAccountSink_update|TestAccLoggingOrganizationSink_updateBigquerySink|TestAccLoggingBillingAccountSink_updateBigquerySink|TestAccLoggingProjectSink_updateBigquerySink|TestAccLoggingProjectSink_updatePreservesUniqueWriter|TestAccDataSourceGoogleServiceAccountJwt |
Rerun these tests in REPLAYING mode to catch issues
|
I do not believe the remaining failure is related to my changes. In |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 4 files changed, 68 insertions(+), 24 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccLoggingProjectSink_updatePreservesCustomWriter |
Rerun these tests in REPLAYING mode to catch issues
|
Looks like the hypothesis in #9384 (comment) was correct |
I will be OOO for the rest of the week, so transferring this review to another team member in case there is progress during that time. Note that there is some internal discussion at b/304503197 |
@slevenick I believe all concerns have been resolved. PTAL and let me know if there is anything outstanding before approval. |
mmv1/third_party/terraform/services/logging/resource_logging_project_sink.go
Show resolved
Hide resolved
Thanks @slevenick |
…#9384) * Treat _Default & _Required Sinks same as buckets * Update documentation. * Update exclusions every time. * Do not check if _Default bucket has been deleted. * Clean-up log statements. * Fixup documentation. * Ensure SA IAM set before associating with bucket.
…#9384) * Treat _Default & _Required Sinks same as buckets * Update documentation. * Update exclusions every time. * Do not check if _Default bucket has been deleted. * Clean-up log statements. * Fixup documentation. * Ensure SA IAM set before associating with bucket.
…#9384) * Treat _Default & _Required Sinks same as buckets * Update documentation. * Update exclusions every time. * Do not check if _Default bucket has been deleted. * Clean-up log statements. * Fixup documentation. * Ensure SA IAM set before associating with bucket.
…#9384) * Treat _Default & _Required Sinks same as buckets * Update documentation. * Update exclusions every time. * Do not check if _Default bucket has been deleted. * Clean-up log statements. * Fixup documentation. * Ensure SA IAM set before associating with bucket.
…#9384) * Treat _Default & _Required Sinks same as buckets * Update documentation. * Update exclusions every time. * Do not check if _Default bucket has been deleted. * Clean-up log statements. * Fixup documentation. * Ensure SA IAM set before associating with bucket.
Fixes terraform-provider-google#7811
The
google_logging_project_bucket_config
resource graciously handles the “_Default” bucket by acquiring and updating the resource that already exists at the desired location. This PR updatesgoogle_logging_project_sink
to behave the same way.Release Note Template for Downstream PRs (will be copied)