Skip to content

Conversation

@scothis
Copy link
Member

@scothis scothis commented Mar 21, 2025

There are two hooks that will suppress the reconciliation:

  • SkipRequest: no work is preformed
  • SkipResource: the resource is loaded and defaulted

Favor SkipRequest if a decision can be made based solely on the Namespace or Name. Use SkipResource if context of the resource is needed.

The context is initialized before either call, allowing access to a client or logger.

There are two hooks that will suppress the reconciliation:
- SkipRequest: no work is preformed
- SkipResource: the resource is loaded and defaulted

Favor SkipRequest if a decision can be made based solely on the
Namespace or Name. Use SkipResource if context of the resource is
needed.

The context is initialized before either call, allowing access to a
client or logger.

Signed-off-by: Scott Andrews <scott@andrews.me>
@codecov
Copy link

codecov bot commented Mar 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.29%. Comparing base (d0110d3) to head (963661f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #606      +/-   ##
==========================================
+ Coverage   59.15%   59.29%   +0.14%     
==========================================
  Files          35       35              
  Lines        4047     4061      +14     
==========================================
+ Hits         2394     2408      +14     
  Misses       1555     1555              
  Partials       98       98              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

scothis and others added 2 commits March 23, 2025 20:46
Co-authored-by: Max Brauer <mamachanko@users.noreply.github.com>
Signed-off-by: Scott Andrews <scott@andrews.me>
Signed-off-by: Scott Andrews <scott@andrews.me>
@scothis scothis marked this pull request as ready for review March 24, 2025 01:12
@scothis scothis requested a review from mamachanko March 24, 2025 01:12
@scothis scothis merged commit ddb9f83 into reconcilerio:main Mar 24, 2025
4 checks passed
@scothis scothis deleted the resource-skip branch March 24, 2025 11:53
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