-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix linter suggestions #15924
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
base: main
Are you sure you want to change the base?
Fix linter suggestions #15924
Conversation
linter changes are already part of this PR - #15922 |
/hold can you just fix the |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15924 +/- ##
==========================================
- Coverage 80.98% 80.90% -0.08%
==========================================
Files 210 210
Lines 16780 16784 +4
==========================================
- Hits 13589 13579 -10
- Misses 2839 2850 +11
- Partials 352 355 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
edb3f60
to
68ba69c
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Fedosin The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold cancel
Thank you for the suggestion! I kept only the fix mentioned in the issue.
@@ -381,6 +384,11 @@ func (c *Reconciler) getOrphanRouteCerts(r *v1.Route, domainToTagMap map[string] | |||
|
|||
certs, err := c.certificateLister.Certificates(r.Namespace).List(labelSelector) | |||
if err != nil { | |||
// In case of NotFound, return empty list | |||
if kerrors.IsNotFound(err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious when does listing a resource return not found?
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Fixes #15755
Proposed Changes
For the specific case described here, we now check for a NotFound error and return an empty list.
Release Note