Commit Graph
397 Commits
Author SHA1 Message Date
Richard Wall a33abd2060 Plumb through the flag provided defaultRenewBeforeExpiryDuration
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-11-19 12:44:18 +00:00
Richard Wall cc1412b252 Deprecate the --renew-before-expiry-duration flag
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-11-19 12:44:18 +00:00
Maartje Eyskens 7d1cd33081 Make resyncPeriod constant
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-10-22 10:25:10 +02:00
Maartje Eyskens 00d2b3b79e Set the resync period to 10 hours
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-10-21 15:19:22 +02:00
560eac4b06 Update cmd/controller/app/options/options.go
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>

Co-authored-by: Richard Wall <wallrj@users.noreply.github.com>
2020-10-16 16:43:13 +02:00
Maartje Eyskens 232f21db26 Validate API values not being 0 + following k8s naming + defaults
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-10-16 13:08:26 +02:00
Maartje Eyskens 7c87e93950 update burst description
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-10-14 17:49:19 +02:00
Maartje Eyskens ebadd4cd28 Fix defaults, description and add validation
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-10-14 17:46:09 +02:00
Maartje Eyskens 5dfb4d409b Make Kubernetes API QPS throtteling configurable
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-10-14 17:16:44 +02:00
Matthias Frey 2f2253afaf make propagation check period configurable
Signed-off-by: Matthias Frey <freym@users.noreply.github.com>
2020-09-24 11:28:49 +02:00
jetstack-botandGitHub a4394510e2 Merge pull request #3275 from wallrj/3251-cainjector-3
Load cainjector controllers independently
2020-09-18 17:14:06 +01:00
Richard Wall c3e79865ca Exit(1) and explain what causes the context to be cancelled
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-18 10:24:10 +01:00
Richard Wall 392ed06cfc Explain why we start the two controllers in separate goroutines
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-18 10:21:21 +01:00
Richard Wall 4fd5cd6b3c Avoid launching controller goroutines during shutdown of unelected
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-18 10:15:14 +01:00
Richard Wall e2765f720a Remove debug log
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-18 10:04:28 +01:00
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 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
Richard Wall bcff4edb0f Run both controllers in a single goroutine with a single manager
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-10 13:54:50 +01:00
Josh SorefandGitHub efd26e6b4f Add missing quote to help
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-09-09 15:32:59 -04:00
Richard WallandRichard Wall ba02ea4120 Revert "Refactor the cainjector to only have 1 leader election"
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-04 16:54:16 +01:00
jetstack-botandGitHub 57034dc1e4 Merge pull request #3213 from hzhou97/add_more_events_output
Ctl command status certificate: Add Events of Issuer and Secret to output
2020-08-27 16:04:36 +01:00
JoshVanLandMaartje Eyskens c83ef5ee77 Fixes client-go logs to use infof
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-27 11:04:09 +02:00
Haoxiang Zhou 4ccf8ebdb7 Return error thrown when looking for events
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-26 16:29:33 +02:00
Haoxiang Zhou 5f423a442e Create Events for integration and unit tests
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-26 16:28:28 +02:00
Haoxiang Zhou a1ce1cefb5 Add Events of Issuer and Secret to output
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-26 15:31:53 +02:00
jetstack-botandGitHub 85a9044c0c Merge pull request #3205 from JoshVanL/ctl-convert-list
Add support for ctl convert over a list
2020-08-21 12:21:43 +01:00
JoshVanL 3ed1dfdc31 Updates deps
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-21 11:05:23 +01:00
JoshVanL d3e27905eb Remove bad error text output
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-21 10:48:21 +01:00
JoshVanL 1c9e955407 Add support for ctl covert with List
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-21 10:40:57 +01:00
Richard Wall 1254179f3a Use V1 API resources in ctl create certificaterequest tests
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 17:12:15 +01:00
Richard Wall bd94bf92a5 cmapiv1 > cmapi
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall b638954b03 Fix ./cmd/ctl and tests
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 0388599674 Rename import to make way for corev1 and v1 api imports later
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-19 15:04:54 +01:00
jetstack-botandGitHub fff2778ae2 Merge pull request #3187 from meyskens/cainject-le
Refactor the cainjector to only have 1 leader election
2020-08-18 10:49:43 +01:00
Haoxiang Zhou 6c26e0d821 Add Challenge output and update tests
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-17 16:15:28 +02:00
Haoxiang Zhou a77f4be62b Use assert.Equals instead of reflect.DeepEquals to compare status structs
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-17 12:19:39 +02:00
Maartje Eyskens 8b7552cec1 Refactor the cainjector to only have 1 leader election
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-17 11:16:48 +02:00
Haoxiang Zhou 62700fceef Add unit tests testing building CertificateStatus struct from gathered Data
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-14 09:35:09 +02:00
Haoxiang Zhou 5a8f3371fa Refactor Run() into multiple functions for better testing
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-14 09:35:09 +02:00
Haoxiang Zhou 894745be7a Refactor out unnecessary helper functions for IssuerStatus
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-14 09:35:09 +02:00
Haoxiang Zhou 9a1da3ed71 Not creating OrderStatus at all if not ACME Issuer
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-14 09:35:09 +02:00
Haoxiang Zhou d4877695da Use GenericIssuer to clean up Run function
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-14 09:35:09 +02:00
jetstack-botandGitHub e1791b0b0e Merge pull request #3154 from hzhou97/add_order_output
Ctl command `status certificate`: Add order output
2020-08-12 14:13:59 +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 827ce9c5ad Revert log levels on errors
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:42 +02:00
Maartje Eyskens bdc8b346c6 Log NS as info
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