Skip to content

fix(operator): update webhook validator for alerts/rules - #17824

Merged
JoaoBraveCoding merged 2 commits into
grafana:mainfrom
JoaoBraveCoding:LOG-6862
May 27, 2025
Merged

fix(operator): update webhook validator for alerts/rules#17824
JoaoBraveCoding merged 2 commits into
grafana:mainfrom
JoaoBraveCoding:LOG-6862

Conversation

@JoaoBraveCoding

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:
Update the webhook validator of alerts/rules to allow infrastructure queries to not have a namespace label

Which issue(s) this PR fixes:
Fixes https://issues.redhat.com/browse/LOG-6862

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
    • Note that Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy. As such, feat PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR
infrastructure queries to not have a namespace label

@xperimental xperimental left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Works as expected using the AlertingRule from the issue 👍

@JoaoBraveCoding
JoaoBraveCoding merged commit 2d40349 into grafana:main May 27, 2025
JoaoBraveCoding added a commit to JoaoBraveCoding/loki that referenced this pull request Jul 9, 2025
JoaoBraveCoding added a commit to JoaoBraveCoding/loki that referenced this pull request Jul 9, 2025
JoaoBraveCoding added a commit to JoaoBraveCoding/loki that referenced this pull request Jul 9, 2025
@JoaoBraveCoding
JoaoBraveCoding deleted the LOG-6862 branch September 29, 2025 10:50
felix0102 pushed a commit to felix0102/loki that referenced this pull request Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants