Repository navigation
Certificates controller policies refactor - #4746
jetstack-bot merged 9 commits into
Conversation
|
Waiting for #4638 /hold |
d009530 to
f03d118
Compare
Signed-off-by: joshvanl <[email protected]>
apply feature is enabled Signed-off-by: joshvanl <[email protected]>
Signed-off-by: joshvanl <[email protected]>
removed Signed-off-by: joshvanl <[email protected]>
controllers Signed-off-by: joshvanl <[email protected]>
Signed-off-by: joshvanl <[email protected]>
Signed-off-by: joshvanl <[email protected]>
/internal/controller/certificates Signed-off-by: joshvanl <[email protected]>
f03d118 to
38b7b93
Compare
irbekrm
left a comment
There was a problem hiding this comment.
This looks like a good and straightforward change, glad that the policies are now in a more reasonable place, makes it easier to understand 👍🏼
I've added a couple questions and one ask for an extra test case, apart from that happy to lgtm
|
Thanks @irbekrm, I have responded to your comments. Re: not re-reconciling on the base Secret annotations changing- I want to make followup PRs to add more post issuance policy checks. These includes things like those annotations, Certificate output formats, etc. |
Signed-off-by: joshvanl <[email protected]>
irbekrm
left a comment
There was a problem hiding this comment.
Thanks for replying to all the questions!
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: irbekrm, JoshVanL The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel |
This PR is branched from #4638 which should be merged first. This is a follow up to reduce reviewer load.
This PR does a small refactor by:
policiesout of the trigger controller, and into/internal/controller. It was already being used by more than just the trigger controller so this is a better shared space for it.NewChain" funcs into thepoliciespackage.policiessecretsmanagerpackage under the issuing controller, since that is where it is used.controller/internal/testto/test/unit/cryptoto be better shared.After this has merged, we can look at checking on other Secret violations that should cause a resync under
NewSecretPostIssuancePolicyChain./kind cleanup
/assign @munnerz