-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add conflict for notification_rate_limit when alert policy is not log based #12941
base: main
Are you sure you want to change the base?
Add conflict for notification_rate_limit when alert policy is not log based #12941
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @trodge, 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. |
d5e0667
to
7fab1f9
Compare
@trodge This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
Tests analyticsTotal tests: 56 Click here to see the affected service packages
Action takenFound 53 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
Currently, when you try to add
notification_rate_limit
to a non-log alert policy, the GCP API stops you at the apply stage. This change would prevent it at the plan stage instead.No changes are needed for users, as the API already enforces this restriction. However, if you work in an environment where the apply stage only happens after merging your PR, you would have to create another PR to remove this block. This has happened to me multiple times when copying other policy blocks that included
notification_rate_limit
.https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_alert_policy#notification_rate_limit-1
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.