Commit Graph

648 Commits

Author SHA1 Message Date
James Munnelly
48958036bf Set NotAfter field in readiness controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
1c26ae412d Move some logic into separate method
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
945dde4175 Fix PolicyFunc reference in trigger controller tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
8aaca4a2ad expcertificates: add readiness controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
53fa3b70ab Move trigger policies into separate package
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
707b7a486a Fix missing append bug
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
a572f739c2 Add trigger policy for private key not matching spec
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
b5c169e35a Fix panic in issuing controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
cde13aa6fd Add requestmanager controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
jetstack-bot
91d598b1de
Merge pull request #2810 from munnerz/keymanager-controller
expcertificates: add keymanager controller
2020-04-20 10:17:38 +01:00
jetstack-bot
687d47f832
Merge pull request #2027 from pepov/auditsink-injector
Add auditsinks in auditregistration.k8s.io/v1alpha1 to the supported injector targets
2020-04-20 08:23:38 +01:00
Maartje Eyskens
db45891705 Add missing context
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-04-17 16:39:06 +02:00
James Munnelly
d60cb08f13 expcertificates: add keymanager controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-16 19:10:41 +01:00
James Munnelly
d0b919a2f7 expcertificates: add PrivateKeyMatchesSpec function
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-16 19:10:41 +01:00
James Munnelly
5e00879749 Add Secret listing function
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-16 19:10:38 +01:00
James Munnelly
26948ed459 Register additional event handlers in issuing controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-16 17:08:39 +01:00
James Munnelly
c2aed0842e Create 'predicate' package and standardise list and enqueue predicates
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-16 14:28:52 +01:00
James Munnelly
9da334164c Update references to cmapi.CertificateRequestRevisionAnnotationKey
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 16:49:47 +01:00
James Munnelly
572e46759c Fixup error text and cleanup test instantiation
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 16:28:29 +01:00
JoshVanL
b5405adb54 Adds some logging to issuing controller
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-15 16:16:08 +01:00
JoshVanL
f297ead1f3 Update generate files
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-15 16:16:08 +01:00
JoshVanL
48ca027906 Adds unit tests for issuing controller
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-15 16:16:08 +01:00
JoshVanL
a6a8ee29e3 Moves issuing controller secret handler into secretsManager struct
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-15 16:16:08 +01:00
JoshVanL
ffb5201d95 Adds extensible issuing controller
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-15 16:16:08 +01:00
James Munnelly
b3fcd23f8d Fixup tautological condition
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
919a160bc4 Fix error message when looking up an owner fails
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
645ed70579 Add trigger controller unit tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
93a6dc56d2 Fix bug causing certificates to not be triggered after failure
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
221f6d4eb7 Log message when parsing a workqueue item fails
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
0f32bb46a8 Allow multiple predicate functions when listing CertificateRequests
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
cf7e344425 Export PolicyChain type
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:46 +01:00
James Munnelly
97b33abf11 Add missing boilerplate headers
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:27:25 +01:00
James Munnelly
1fc9981359 Fix up use of Kubernetes clientset after rebase
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:27:15 +01:00
James Munnelly
6170a0852e Refactor trigger controller init for easier integration testing
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:26:21 +01:00
James Munnelly
22344352c8 Add experimental 'trigger' controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:26:21 +01:00
James Munnelly
822b9e17a0 Remove AdditionalRunFuncs from base controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-30 20:43:00 +01:00
pepov
9b764960b9 restore Register method
Signed-off-by: pepov <peterwilcsinszky@gmail.com>
2020-03-30 18:41:26 +02:00
James Munnelly
20ee4833dd Remove webhookbootstrap controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-30 14:26:05 +01:00
pepov
c75b9ba56a simplify error handling for registerAllInjectors
Signed-off-by: pepov <peterwilcsinszky@gmail.com>
2020-03-30 14:33:50 +02:00
pepov
5ba789934d add comment, rename/unexport Register method
Signed-off-by: pepov <peterwilcsinszky@gmail.com>
2020-03-30 14:33:50 +02:00
pepov
9b82e465b9 reword comments
Signed-off-by: pepov <peterwilcsinszky@gmail.com>
2020-03-30 14:33:50 +02:00
pepov
f4813fdda9 log with the Info level instead of error when the injector is alpha and the type cannot be found
Signed-off-by: pepov <peterwilcsinszky@gmail.com>
2020-03-30 14:33:50 +02:00
pepov
24507f70c6 add auditsinks in api/auditregistration/v1alpha1 to the supported targets and handle injector "no matching kind" errors as something that shouldn't break the operator
Signed-off-by: pepov <peterwilcsinszky@gmail.com>
2020-03-30 14:33:50 +02:00
James Munnelly
881b886049 Update Kubernetes API client call-sites
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-26 12:58:50 +00:00
James Munnelly
134fa7e5e5 webhookbootstrap: fix updating Secret resources
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-25 09:37:34 +00:00
jetstack-bot
35add56ef5
Merge pull request #2625 from srbraun/crl
adds option to specify CRL Distribution Point. #2612
2020-03-23 13:33:32 +00:00
James Munnelly
acff2b12bb Fix JKS keystore functionality and add additional tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-23 10:02:42 +00:00
Sergey Braun
9b76cdd402
adds CDP field and description to CA issuer
Signed-off-by: Sergey Braun <dev@skra.space>
2020-03-19 12:52:43 +01:00
James Munnelly
2f92e38955 Set a 10s deadline on calls to Setup on issuers
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-06 20:47:17 +00:00
James Munnelly
98bc0d52f9 Add --experimental-issue-jks flag to enable JKS bundle generation
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-04 15:33:22 +00:00