Closed lburgazzoli closed 1 week ago
So, you combined 2 changes in the patch: 1) combined err
and IsNotFound
checks in one condition; 2) changed the Get error variable name.
Due to presents of the first one the diff is unreviewable basically due to change in the indentation level (I had to open both sources separately). It is unrelated unexpected change, draws attention of the intended change, and it is not mentioned in the commit message at all. Hint: if you negate the condition and do early return, you will save one more indentation level. UPD: and it also fixes the original problem.
The second one is the case Bartosz likes to struggle :) But it is also solvable introducing if
scope only variable. Matter of taste. Of course, there would be probably no such problem, if the logic was in a separate function.
The second one is the case Bartosz likes to struggle :) But it is also solvable introducing
if
scope only variable. Matter of taste. Of course, there would be probably no such problem, if the logic was in a separate function.
Yep, I made this as a draft as I'm still improving it a bit after finding I didn't like it much
Attention: Patch coverage is 56.60377%
with 23 lines
in your changes missing coverage. Please review.
Please upload report for BASE (
incubation@b91bd29
). Learn more about missing BASE report.
Files with missing lines | Patch % | Lines |
---|---|---|
...lers/secretgenerator/secretgenerator_controller.go | 56.60% | 21 Missing and 2 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
small comments (cannot do in code....)
generatedSecret.Labels = foundSecret.Labels
@zdtsw
looks good to me, will leave to @zdtsw due to the conversation.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: zdtsw
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Description
The PR is meant to:
How Has This Been Tested?
Screenshot or short clip
Merge criteria
Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).The developer has manually tested the changes and verified that the changes work