Commit Graph

492 Commits

Author SHA1 Message Date
James Munnelly
80cbcb35fb Add issue-temporary-certificate annotation to control temporary cert issuance
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-20 15:26:41 +01:00
James Munnelly
7e1312794c Set certificate-name annotation on CertificateRequest resources
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-19 17:05:02 +01:00
James Munnelly
79f2cd60f4 Pass down annotations from Certificate resources to Orders via CertificateRequests
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-19 16:38:43 +01:00
James Munnelly
e5f3b46018 Update OwningCertForSecret to use annotations to discover owner
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-19 15:35:46 +01:00
James Munnelly
99714943bc Remove deprecated code from acmechallenges controller (tests only)
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-19 13:07:59 +01:00
James Munnelly
bc61194709 Remove deprecated code from ingress-shim controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-19 13:07:59 +01:00
James Munnelly
20840b552d Remove deprecated code from acmeorders controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-19 13:07:59 +01:00
James Munnelly
51bf98581e Remove deprecated code from certificates controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-19 13:07:59 +01:00
James Munnelly
5cf9beec65 Add annotations to allow overring HTTP01 ingress class and name
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-11 13:31:38 +01:00
James Munnelly
d59f21da7e Separate sync_test.go into util_test.go
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-11 10:23:33 +01:00
James Munnelly
ab06335078 Mark Order as failed if invalid data is returned from ACME server
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-10 14:46:55 +01:00
James Munnelly
b92ffbe649 Update tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-10 14:45:26 +01:00
James Munnelly
ace5eebadc Rewrite and improve acmeorders controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-10 14:45:26 +01:00
James Munnelly
e8d1bc608e Update for ACMEChallengeType type
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-09-10 14:45:26 +01:00
jetstack-bot
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-bot
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-bot
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-bot
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-bot
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