Commit Graph
478 Commits
Author SHA1 Message Date
jetstack-botandGitHub f1d591a531 Merge pull request #1959 from munnerz/basic-conformance-certificates
Add very basic Certificates based conformance suite
2019-09-04 15:18:33 +01:00
James Munnelly c4e00311ba Set certificate name annotation in certificates controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-03 11:20:51 +01:00
James Munnelly 9542fe50d0 Add basic DNS zone selector unit tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-03 10:52:51 +01:00
James Munnelly cb71859bad Copy labels from Certificate to CertificateRequest
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-03 10:52:32 +01:00
James Munnelly fad10b8ca9 Fix bug in ACME certificaterequest implementation
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-02 12:46:40 +01:00
James Munnelly ea5c111bca Add RegisterAdditionalSyncFuncs
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-22 13:11:33 +01:00
James Munnelly 1b8a286206 Rename Setup->Init and use Start to start informers
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-22 13:11:33 +01:00
James Munnelly 7fa04c4889 Watch only the webhookboostrap namespace in bootstrap controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-22 13:11:33 +01:00
jetstack-botandGitHub dcba8ebd06 Merge pull request #2002 from munnerz/internal-apiversion
Add internal API version, enable defaulter & conversion-gen and implement mutating webhook
2019-08-21 21:53:36 +01:00
James Munnelly 6052e0558e Refactor base controller and allow Running additional informers
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-21 13:22:57 +01:00
James Munnelly 73d66c44ab Move API validations package
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-21 13:11:01 +01:00
JoshVanL 08c245ad7e Set venafi RetrieveError as failed
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-19 16:04:12 +01:00
JoshVanL a2f9d9935c Updates venafi CR tests to use full sync from base controller
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-19 16:04:12 +01:00
JoshVanL efe1d4e670 Use DefaultCertDuration in ./pkg/api/util
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-19 16:04:12 +01:00
JoshVanL 646f87424d Update venafi CR controller to use new reporter functionality
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-19 16:04:12 +01:00
JoshVanL ab346453e3 Moves DefaultCertDruation to ./api/util/duration.go
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-19 16:04:12 +01:00
JoshVanL 5432354679 Adds venafi CR controller tests
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-19 16:04:12 +01:00
JoshVanL d96c7d2e1c Adds venafi internal package with venafi CR controller
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-19 16:04:12 +01:00
jetstack-botandGitHub 8ab4dc1301 Merge pull request #1943 from JoshVanL/cr-acme
Adds acme CertificateRequest controller
2019-08-17 00:34:00 +01:00
JoshVanL eb6e38a7d2 Changes WithResource -> WithRelatedResource
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-16 16:11:43 +01:00
JoshVanL 5ef9700f35 Updates acme CR controller tests to include controller sync
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-15 18:24:32 +01:00
jetstack-botandGitHub 3716902b84 Merge pull request #1993 from munnerz/webhookbootstrap-controller
Use dedicated controller for bootstrapping webhook TLS
2019-08-15 17:35:56 +01:00
JoshVanL 7869f99edf Fix test package name and acme tests
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-15 17:18:11 +01:00
JoshVanL 10402613c2 Update the ACME CR controller to use the new reporter signature
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-15 17:18:11 +01:00
JoshVanL 64b2dde1f1 Improve event wording and some code nesting
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-15 17:18:11 +01:00
JoshVanL 0f08f40316 Move fake order lister to ./test/unit/listers
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-15 17:18:11 +01:00
JoshVanL b9188871ad Add extra informers to cr controller struct on New
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-15 17:18:11 +01:00
JoshVanL eabdf0444a Updates acme to use new reporter
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-15 17:18:11 +01:00
JoshVanL e2b9b21766 Adds acme CertificateRequest controller with unit tests
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-15 17:18:11 +01:00
jetstack-botandGitHub d4a675ee66 Merge pull request #1995 from JoshVanL/cr-test-refactor-sync
Include the shared controller Sync function in all CR controller tests
2019-08-15 17:13:56 +01:00
James Munnelly 3ad62b2bb9 Address review feedback
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-15 16:22:04 +01:00
James Munnelly 7dda4d9ce4 Automatically renew webhook certificates 30d before expiry
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-15 15:37:25 +01:00
JoshVanL 92a6e32a73 Remove the possibility to set the generic CR controller to set issuance
pending

Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-15 13:20:57 +01:00
James Munnelly b476a4d5f7 Add webhookbootstrap tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-15 09:52:55 +01:00
JoshVanL ec204def7e Updates vault CR controller tests to include Sync
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-14 23:40:37 +01:00
JoshVanL 1814a09580 Update CA CR controller tests with now correct conditions
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-14 22:54:47 +01:00
JoshVanL ebf38dbfbb Refactor and cleans up SelfSigned CR controller tests
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-14 22:24:14 +01:00
James Munnelly 5c17c2e37f Add webhookbootstrap controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-14 21:27:36 +01:00
JoshVanL 2948280f01 Fixes CR condition reporting and cleans up main sync tests
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-14 21:17:18 +01:00
James Munnelly dbf3258f4c Move cainjector annotations into apis package
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-14 19:36:56 +01:00
JoshVanL 6e983fd7e6 Refactors CA cr controller to use sync
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-14 18:17:26 +01:00
James Munnelly 9b5f2bf669 Address review comments
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-14 13:02:14 +01:00
James Munnelly 6967baad8e Only allow injecting from Secrets that have the AllowsInjectionFromSecretAnnotation annotation
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-14 12:57:03 +01:00
James Munnelly dd66c11115 Extend cainjector to support injecting from secrets
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-14 12:57:01 +01:00
jetstack-botandGitHub f7f0e9f16a Merge pull request #1987 from munnerz/ca-crt-api
Move TLSCAKey to v1alpha1 package
2019-08-14 12:02:55 +01:00
James Munnelly ce475e1640 Move TLSCAKey to v1alpha1 package
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-08-14 01:21:15 +01:00
JoshVanL b11d69afa6 Update reporter in vault CR controller to use new signature
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-13 23:40:59 +01:00
JoshVanL d588d5feba Improve code flow and remove unused issuer helper in vault cr controller
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-13 23:37:35 +01:00
JoshVanL 5f70998acb Cleans up some code and clearer naming
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-13 23:37:35 +01:00
JoshVanL 25f374da19 Fix pkg/internal/vault/fake
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2019-08-13 23:37:35 +01:00