Skip to content

Conversation

@MauritsMonteyne
Copy link
Contributor

@MauritsMonteyne MauritsMonteyne commented Jun 2, 2025

What this PR does / why we need it

Add the possibility to specify matchConditions for admissionWebhooks objects. We have a use case where we don't want validation for some of our Prometheus rules. Currently, matchLabels allows filtering based on label presence, but there is no built-in way to exclude certain labels. Adding matchConditions would solve this problem by letting us define more flexible filtering logic.

Which issue this PR fixes

N/A

Special notes for your reviewer

N/A

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

@QuentinBisson
Copy link
Member

This looks like a good improvement

@QuentinBisson QuentinBisson enabled auto-merge (squash) June 2, 2025 13:43
@QuentinBisson QuentinBisson merged commit 6cb56c4 into prometheus-community:main Jun 2, 2025
6 checks passed
@MauritsMonteyne
Copy link
Contributor Author

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants