cert-manager/pkg/controller
Maël Valais 71e707387a trigger-controller: refactor test, inject gatherer and policychain
Injecting the whole Gatherer struct was not necessary for testing
since DataForCertificate is now fully unit-tested. With that, we
can mock the Gatherer.Evaluate function. Since there is no reason
to inject a full Gatherer object into the trigger controller, I chose
to inject a simple policies.Func. I named the function "shouldReissue"
since this is exactly what this function does.

I also refactored the test cases to use the same gen.Certificate
that we use in the rest of the codebase.

Signed-off-by: Maël Valais <mael@vls.dev>
2021-03-23 13:55:11 +01:00
..
acmechallenges Merge pull request #3500 from meyskens/update-copy 2020-12-15 10:12:31 +00:00
acmeorders spelling: preferred 2021-03-04 13:04:38 -05:00
cainjector Minor log message clarification 2021-01-07 19:21:11 +00:00
certificaterequests Don't log error output in approver when CertificateRequest is deleted 2021-03-17 13:10:39 +00:00
certificates trigger-controller: refactor test, inject gatherer and policychain 2021-03-23 13:55:11 +01:00
clusterissuers Merge pull request #3641 from JoshVanL/certificate-request-identity 2021-03-15 14:26:15 +00:00
ingress-shim Revert ingress key usage annotation to default the same as Certificate 2021-02-04 16:08:30 +00:00
issuers Merge pull request #3641 from JoshVanL/certificate-request-identity 2021-03-15 14:26:15 +00:00
test DataForCertificate: use fake clientset instead of fake lister 2021-03-04 17:20:45 +01:00
BUILD.bazel Remove unused helper functions 2020-11-19 12:44:18 +00:00
builder.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
context.go Removes the deprecated renew-before-expiry flag 2021-02-21 10:22:25 +00:00
controller.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
helper.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
register.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
util.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00