-
Notifications
You must be signed in to change notification settings - Fork 47
refresh certs if needed in reconciler #81
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
Conversation
Signed-off-by: Alex Pana <[email protected]>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #81 +/- ##
==========================================
+ Coverage 51.78% 54.19% +2.40%
==========================================
Files 1 1
Lines 531 548 +17
==========================================
+ Hits 275 297 +22
+ Misses 190 185 -5
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
For testing, one way would be to create a mode that enables only the controller, not the rotator (just don't add the rotator to the manager), then there is no race condition.
Signed-off-by: Alex Pana <[email protected]>
@maxsmythe thanks for the suggestion! I added a field on the |
Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
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.
LGTM after removal of requeue
Signed-off-by: Alex Pana <[email protected]>
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.
LGTM
Co-authored-by: Rita Zhang <[email protected]> Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
842a840
to
5030b09
Compare
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.
LGTM
Basically following Max's advice here: open-policy-agent/gatekeeper#2477 (comment) to call refresh certs if needed in the reconciler.
I also ran
gofumpt
,gci
andgodot
on the files.