cert-manager/pkg/controller
Ashley Davis 0225cc9234
avoid logging confusing error messages for external issuers
See https://github.com/cert-manager/cert-manager/issues/5601

When referring to external issuers whose kind is not "Issuer" or
"ClusterIssuer" we log an error message thanks to a new check added in
a previous PR[1] which should only trigger for SelfSigned issuers.

The error previously looked like:

```text
"error"="invalid value \"x\" for issuerRef.kind. Must
be empty, \"Issuer\" or \"ClusterIssuer\""
```

After this PR, any CR with an issuer whose group or kind doesn't
match what's expected for a built-in issuer will be skipped

https://github.com/cert-manager/cert-manager/pull/5336

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>

WIP: test other issuer kinds

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-01-04 12:10:34 +00:00
..
acmechallenges feature: update gateway api to v1beta1 2022-12-05 14:03:21 +00:00
acmeorders Remove bazel 🎉 2022-07-26 11:38:50 +01:00
cainjector upgrade gateway api to v0.5.0 2022-08-08 08:52:59 +00:00
certificate-shim Merge pull request #5583 from lvyanru8200/uodateGwVerison 2022-12-05 14:52:48 +00:00
certificaterequests avoid logging confusing error messages for external issuers 2023-01-04 12:10:34 +00:00
certificates Addressing review comments 2022-12-06 18:54:46 +05:30
certificatesigningrequests improve gen.CSR and use it everywhere 2022-11-10 09:21:31 +01:00
clusterissuers fixup! Add option to load Vault CA bundle from Kubernetes Secret 2022-08-21 07:41:15 +03:00
globals Remove bazel 🎉 2022-07-26 11:38:50 +01:00
issuers fixup! Add option to load Vault CA bundle from Kubernetes Secret 2022-08-21 07:41:15 +03:00
test upgrade gateway api to v0.5.0 2022-08-08 08:52:59 +00:00
builder.go rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
context_test.go Change controller context rate limiter test to ensure they are the same 2022-02-22 09:15:10 +00:00
context.go feature: update gateway api to v1beta1 2022-12-05 14:03:21 +00:00
controller.go Fix incorrect uses of loop variable 2022-08-26 15:08:30 -04:00
helper.go rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
register.go Adds ContextFactory to controller package. Changes controller builder to 2022-01-27 12:50:12 +00:00
util_test.go Allows for annotations passed from CSR to Order to be filtered 2021-07-27 10:55:09 +01:00
util.go rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00