-
Notifications
You must be signed in to change notification settings - Fork 244
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
Reject recording rules with incompatible fields #2000
Conversation
In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically. |
Can you fill out the PR description? Otherwise, this looks good to me 👍 |
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.
LGTM, looks like ci docs check is failing because jq has a new website
This PR introduces logic to validate that conflicting fields are not used for recording rules, since these values are stripped by Grafana and will cause plans to always show diffs for these fields.
Note: Due to limitations in the SDK this PR moves some validation out of the schema into
CreateContext
in order to allow for us to check for conflicting fields, which is not possible on aListType