fix: return registry secret lookup errors from resolveRegistrySecretName#584
Conversation
resolveRegistrySecretName previously swallowed all Get errors at V(4), causing a silent fall-through to anonymous push on any API server blip. Distinguish IsNotFound (skip to next secret) from transient errors (return error so the controller retries with exponential back-off). Signed-off-by: ashnaaseth2325-oss <ashnaaseth2325@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #584 +/- ##
==========================================
- Coverage 79.84% 79.83% -0.01%
==========================================
Files 202 202
Lines 14795 14800 +5
==========================================
+ Hits 11813 11816 +3
- Misses 2552 2553 +1
- Partials 430 431 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
SUMMARY
This PR updates registry secret resolution to distinguish transient API errors from missing secrets during Commit job creation. Instead of silently falling back to anonymous pushes on any lookup failure, transient errors are now returned so the controller can retry the reconciliation.
The changes primarily affect
pkg/controller/commit/core/common_control.goand its associated unit tests.FIX