Skip to content
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

🌱 Add matchCondition to webhook config #376

Conversation

bentito
Copy link
Contributor

@bentito bentito commented Sep 5, 2024

Fix: #370

Should add some efficiency as it only lets the webhook fire when needed.

If either the olm.operatorframework.io/metadata.name label is missing, or the label does not match the catalog name, the webhook will be allowed to fire and correct the situation.

Should add some efficiency as it only lets the webhook fire when needed

Signed-off-by: Brett Tofel <btofel@redhat.com>
@bentito bentito requested a review from a team as a code owner September 5, 2024 18:48
@bentito bentito changed the title Add matchCondition to webhook config 🌱 Add matchCondition to webhook config Sep 5, 2024
Copy link
Contributor

@tmshort tmshort left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 5, 2024
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.95%. Comparing base (7603eaa) to head (b1e0c85).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #376   +/-   ##
=======================================
  Coverage   33.95%   33.95%           
=======================================
  Files          16       16           
  Lines         698      698           
=======================================
  Hits          237      237           
  Misses        435      435           
  Partials       26       26           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joelanford joelanford added this pull request to the merge queue Sep 5, 2024
Merged via the queue into operator-framework:main with commit 6584e7e Sep 5, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Follow up: use webhooks.matchConditions
3 participants