Commit Graph

767 Commits

Author SHA1 Message Date
Richard Wall
b772f3295b Use cancellable contexts and errgroups
...to control the starting and stopping of controllers and caches

Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-17 09:37:05 +01:00
Richard Wall
3723ea5a52 Update all
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-11 10:32:07 +01:00
Richard Wall
0f7b23c23b Pass the specific cache to the indexer functions
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-11 10:21:12 +01:00
Richard Wall
81874895b0 Use NewUnmanaged and separate caches for each controller
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-11 10:09:27 +01:00
Stevo Slavić
8d983226e2 Remove extra space
Signed-off-by: Stevo Slavić <sslavic@gmail.com>
2020-09-03 15:11:45 +02:00
Maartje Eyskens
c73c121ce1 Order imports
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-09-01 15:08:31 +02:00
Maartje Eyskens
9d0a1b136e
Update pkg/controller/certificaterequests/acme/acme.go
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>

Co-authored-by: Richard Wall <wallrj@users.noreply.github.com>
2020-09-01 15:05:48 +02:00
Maartje Eyskens
6756856e82 Nil out request in spec again for order
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-31 10:08:54 +02:00
Maartje Eyskens
f1c6c93df5 Fix CR and make a general function
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-28 15:06:54 +02:00
Maartje Eyskens
69186afbdd Move logic to utils
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-28 09:59:48 +02:00
Maartje Eyskens
bb89b50c8f Fix invalid DNS-1123 on ACME computed names
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-28 09:54:18 +02:00
Richard Wall
9d0559cfda Compare email addresses in RequestMatchesSpec
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-27 09:10:57 +01:00
Richard Wall
3107b380f2 Replace some references to URISANs and EmailSANs
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-26 16:52:08 +01:00
Richard Wall
e8185e73f1 Remove duplicate import
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-26 16:47:47 +01:00
jetstack-bot
6a2f9538fc
Merge pull request #3208 from meyskens/acme-multi-chain
Add support for alternate certs with PrefferedChain in ACME
2020-08-26 12:03:35 +01:00
Maartje Eyskens
824e075bf8 fmt
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-24 17:45:52 +02:00
Maartje Eyskens
75e31fe54c Add a unit test for alt chains
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-24 17:33:27 +02:00
Lars Lehtonen
aab6b479c5
pkg/controller/certificates/internal: fix dropped test errors
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
2020-08-21 21:39:29 -07:00
Maartje Eyskens
90d6a54151 Add support for alternate certs with PrefferedChain in ACME
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-21 17:56:26 +02:00
Richard Wall
55514f048c Move Venafi Pickup ID annotation key to the external API package
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-21 10:27:47 +01:00
Richard Wall
dbc3d95b92 Fix an import alias that still called v1alpha1
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 17:13:48 +01:00
Richard Wall
821d824cc2 Revert renaming of CSR > Request in comments and in error messages
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:07 +01:00
Richard Wall
3fb3db27ff Fix ACME challenge type in unit tests
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Maartje Eyskens
5aba6f956b Fix ACME
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-20 14:28:06 +01:00
Richard Wall
01b5d0fa88 Fix tests in ./pkg/controller/certificates/...
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall
758131ada2 Fix tests in github.com/jetstack/cert-manager/pkg/controller/acmeorders
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall
5d936930e6 Revert an accidental change of CSR > Request
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall
9cca8a1da4 Update hash based API resource names to account for changed API
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall
81eb53f597 ./hack/update-all.sh
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall
a70298180a Run a script to update v1alpha2 usage to v1
Script is available at https://github.com/jetstack/cert-manager/pull/3201

Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:26:51 +01:00
Richard Wall
2b1e1d1d2b Remove deprecated issuer related annotation key constants from the API
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-14 17:07:36 +01:00
jetstack-bot
d9ad986823
Merge pull request #3173 from wallrj/p12-intermed-cert
Add intermediate cert to P12 chain if ca.crt is empty
2020-08-12 13:18:59 +01:00
Maartje Eyskens
d2f86c410a Add intermediate cert to P12 chain if ca.crt is empty
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 12:39:27 +01:00
Richard Wall
5acb052194 A test for certificate chains
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-12 12:39:27 +01:00
Maartje Eyskens
3259fdfe9b Implement feedback
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:42 +02:00
Maartje Eyskens
33702ed413 Address feedback
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:42 +02:00
Maartje Eyskens
827ce9c5ad Revert log levels on errors
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:42 +02:00
Maartje Eyskens
5d4869b20e Fix formatted logs
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:41 +02:00
Maartje Eyskens
86dee5ed41 Set error log levels
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:41 +02:00
Maartje Eyskens
fecd0b3518 Set all log levels for info
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:41 +02:00
Maartje Eyskens
9dd00905e9 Update klog
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>

klog v2

Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:41 +02:00
Richard Wall
46d4ea768b Update test for pkcs12 encoded CA data
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-07 17:26:59 +01:00
jetstack-bot
497e64de4b
Merge pull request #3151 from JoshVanL/fix-external-issuer
Adds Issuer Group to Secret annotation
2020-08-06 13:58:32 +01:00
JoshVanL
016b566689
Adds Issuer Group to Secret annotation
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-06 09:24:37 +01:00
jetstack-bot
914508a625
Merge pull request #3085 from meyskens/ingress-cn
Set a CN on ingress-shim + allow common-name annotation on ingress
2020-07-31 10:21:57 +01:00
Maartje Eyskens
4be07ade31 Also update labels
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-07-31 10:07:26 +02:00
Maartje Eyskens
3c7573ac12 Use crt variable to update certificate
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-07-29 19:20:00 +02:00
Maartje Eyskens
6e0d27234d Remove unused argument
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-07-28 17:40:17 +02:00
Maartje Eyskens
5be15c870f Remoce unused test
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-07-28 11:21:09 +02:00
Maartje Eyskens
9844658e73 Remove defaulting behaviour
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-07-28 11:18:04 +02:00