joshvanl
6957bc31df
Adds the CertificateRequest approver controller to
...
cert-manager-controller
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-17 13:10:39 +00:00
jetstack-bot
70c66e02a0
Merge pull request #3641 from JoshVanL/certificate-request-identity
...
CertificateRequest UserInfo fields
2021-03-15 14:26:15 +00:00
joshvanl
39a50a1903
Updates unit certificate controller tests to include ObservedGeneration
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-04 17:04:09 +00:00
Jake Sanders
4c935a2706
Fix expired certificate test
...
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
2021-02-26 11:06:25 +00:00
irbekrm
b852e97ffb
Removes the deprecated renew-before-expiry flag
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-02-21 10:22:25 +00:00
joshvanl
33f3fe473c
Rename webhook SchemeBackedMutator -> RegistryBackedMutator
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-02-10 09:39:52 +00:00
joshvanl
90f0869899
Updates webhook command to use new mutating registry
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-02-08 19:23:15 +00:00
irbekrm
34fd9e9fef
Makes /cmd/cainjector/main more DRY
...
reuses util.ContextWithStopCh to create a context with cancel func
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-01-27 13:32:23 +00:00
irbekrm
1abc7107ca
Passes a single context with cancel func to all the kubectl plugin commands
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
Don't duplicate the existing ContextWithStopCh function
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-01-27 13:06:34 +00:00
jetstack-bot
26afeceb2b
Merge pull request #3457 from meyskens/inspect-secret
...
Add `inspect secret` command
2021-01-22 16:19:03 +01:00
Maartje Eyskens
b2bd401b91
Outuput error
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2021-01-20 10:32:45 +01:00
Maartje Eyskens
aa482212c1
Use templates (not fully yet)
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2021-01-19 18:13:26 +01:00
Maartje Eyskens
83881df0db
Sort imports
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2021-01-19 15:42:25 +01:00
Julien ALEXANDRE
f8fbea38b3
Add flags to configure cainjector leader election
...
This commit enables users to customize the behavior of the cainjector
regarding leader election by adding `--leader-election-lease-duration`,
`--leader-election-renew-deadline` and `--leader-election-retry-period`
flags. These flags are already available on the controller.
Prior to this change, the values of these options were inherited from
controller-runtime. This commit keeps the same defaults for the
cainjector, for backward compatibility, even though they differ from
those of the controller.
Signed-off-by: Julien ALEXANDRE <22328659+ndrpnt@users.noreply.github.com>
2020-12-19 18:00:54 +01:00
Maartje Eyskens
a5732221f4
Fix tests
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-15 17:09:39 +01:00
Maartje Eyskens
d65a9a3479
Update copyright
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-15 17:04:08 +01:00
Maartje Eyskens
f7f766b077
Fix describe test
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-15 17:02:13 +01:00
Maartje Eyskens
dbf5dc6804
Add boilerplate
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-15 17:02:13 +01:00
Maartje Eyskens
df7bce9b33
Add tests
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-15 17:02:13 +01:00
Maartje Eyskens
214e607b07
Clean up code
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-15 17:02:13 +01:00
Maartje Eyskens
f671c811cf
Improve logic
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-15 17:02:13 +01:00
Maartje Eyskens
bedb95a0a4
Add revocation checks
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-15 17:02:13 +01:00
Maartje Eyskens
654f16ec14
WIP add inspect secret
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-15 17:02:12 +01:00
jetstack-bot
cdc53b65cb
Merge pull request #3500 from meyskens/update-copy
...
Update copyright to cert-manager project
2020-12-15 10:12:31 +00:00
Maartje Eyskens
ab0cd57dc5
Use The cert-manager Authors.
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-11 19:04:13 +01:00
jetstack-bot
2c521609de
Merge pull request #3477 from tharun208/feat/profiling
...
Added profiling for controller
2020-12-11 14:11:10 +00:00
Maartje Eyskens
1788a9d758
Update copyright to cert-manager project
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-08 19:04:49 +01:00
Tharun
b67da63a4e
Added profiling for controller
...
Signed-off-by: Tharun <rajendrantharun@live.com>
2020-11-22 12:15:52 +05:30
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
Maartje Eyskens
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-bot
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 Soref
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 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-bot
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
JoshVanL
c83ef5ee77
Fixes client-go logs to use infof
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-27 11:04:09 +02:00