James Munnelly
822b9e17a0
Remove AdditionalRunFuncs from base controller
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2020-03-30 20:43:00 +01: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
Josh Soref
8d801fc100
spelling: certificate
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
2020-02-24 16:15:51 -05:00
James Munnelly
1f3b883cfd
Don't overwrite order.status.url if return Order's URI is empty
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-12-03 16:49:31 +00:00
James Munnelly
641fe0da7c
Switch to using upstream golang.org/x/crypto
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-12-03 16:49:31 +00:00
Nils Cant
765a0cb21d
Correct order api group owner reference when creating challenges
...
Signed-off-by: Nils Cant <nils.cant@vargen.io >
2019-11-05 15:22:32 +01:00
James Munnelly
56b1fdd379
Make ACMEAuthorization.Wildcard a *bool
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-10-15 12:35:11 +01:00
James Munnelly
ef55bd5807
Mark Order & Challenge resources as Errored if 4xx error is received
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-10-11 09:30:17 +01:00
James Munnelly
9a807be80a
Fix not returning updateErr if updating status failed
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-10-02 14:09:24 +01:00
James Munnelly
8bf08237f7
Migrate acmechallenges and acmeorders to use UpdateStatus
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-10-02 12:38:29 +01:00
JoshVanL
b6803a2185
Fully update challenge and order in controller sync instead of UpdateStatus
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com >
2019-09-30 13:47:51 +01:00
JoshVanL
94d077a5fb
Adds status sub resource and changes updates
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com >
2019-09-30 13:47:50 +01:00
James Munnelly
973f4aa424
Update codebase for external dependencies
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-09-26 12:52:43 +01:00
James Munnelly
2868b4a7b7
Update pkg/controllers
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-09-23 10:07:53 +01:00
James Munnelly
bf9fbea23f
Update codebase for new meta apigroup
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-09-20 19:25:04 +01:00
James Munnelly
58754abf37
Refactor codebase for v1alpha2
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-09-20 16:22:43 +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
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
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
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
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
5aeee11598
Add unit tests for deprecated config feature flag
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-07-26 17:18:48 +01:00
James Munnelly
1da47b9e68
Add DisableDeprecatedACMECertificates feature gate
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-07-26 16:17:59 +01:00
James Munnelly
ff0a2c00a1
Don't manually init issuer helper
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-07-26 15:24:41 +01:00
James Munnelly
57315074f7
acmeorders: remove util_test.go and refactor to use builder directly
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-07-26 12:30:23 +01:00
James Munnelly
99bbc31386
Promote 'Clock' to be a field on controller context
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-07-26 12:30:23 +01:00
jetstack-bot and GitHub
0b5f963bf9
Merge pull request #1884 from munnerz/order-csr-pem
...
Encode CSR on Order into PEM format and properly handle decoding
2019-07-12 17:00:38 +01:00
James Munnelly
c6ceea4e81
Encode CSR on Order into PEM format and properly handle decoding
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-07-12 14:00:46 +01:00
Michael Tsang
b717292090
Rewrite if/else for nil selector
...
Signed-off-by: Michael Tsang <michael.tsang@jetstack.io >
2019-07-10 17:09:26 +01:00
Michael Tsang
adfb8703c8
Fix bug where solver with no selector causes nil pointer
...
Signed-off-by: Michael Tsang <michael.tsang@jetstack.io >
2019-07-10 15:34:24 +01:00
James Munnelly
ed3efdebe0
orders: fire an Event when no acme solver matches an identifier being validated
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-07-04 22:14:35 +01:00
James Munnelly
c9bcfc2b62
Refactor label selector checker
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-06-25 16:52:15 +02:00
James Munnelly
cf8c12c5ea
Add unit tests for dnsZone selectors
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-06-25 15:18:30 +02:00
James Munnelly
e8c64e46cc
Add support for dnsZones in solver selector
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-06-25 15:18:30 +02:00
James Munnelly
77d9891650
Rewrite challengeSpecForAuthorization function
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-06-25 15:18:30 +02:00
James Munnelly
fc24b9afc9
Add unit tests for challengeSpecForAuthorization function
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-06-25 15:17:17 +02:00
James Munnelly
20b1343c88
Remove use of klog from more places
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-06-25 14:30:41 +02:00
James Munnelly
f8a798bd2b
update bazel files
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-06-19 15:33:57 +01:00
James Munnelly
442789113a
Refactor controllers to not reference BaseController
...
Signed-off-by: James Munnelly <james@munnelly.eu >
2019-06-19 15:11:06 +01:00
jetstack-bot and GitHub
48cd58b23f
Merge pull request #1722 from cheukwing/issue-1003
...
Add BaseController as a refactoring of common controller code
2019-06-17 19:27:57 +01:00
jetstack-bot and GitHub
4c199c90ca
Merge pull request #1717 from dobesv/patch-2
...
Fix solver selection logic to return the selected solver rather than always returning the last one
2019-06-06 13:29:03 +01:00
jetstack-bot and GitHub
edd2225002
Merge pull request #1692 from cheukwing/issue-1001
...
Add metric to count number of sync calls
2019-06-05 11:20:39 +01:00
Dobes Vandermeer and Michael Tsang
bd8cd5441a
Fix address to reference array element
...
The address of a for loop created variable does not change between loops - the variable is over-written with each new variable. This fixes the code so that `d` references the array element instead of the local variable, which means that when `d` is assigned to `matchAll` or `specificMatch` it will work as intended.
Signed-off-by: Dobes Vandermeer <dobesv@gmail.com >
2019-05-28 09:00:04 +01:00
Dobes Vandermeer and Michael Tsang
6d28bee388
Update matchAllDomainsNumLabels and numLabelsSpecificMatch
...
These variables seem like they should be updated when updating the thing they are supposed to be derived from.
Signed-off-by: Dobes Vandermeer <dobesv@gmail.com >
2019-05-24 09:57:53 +01:00
Michael Tsang
0add074b7f
Add basecontroller to other controllers
...
Signed-off-by: Michael Tsang <michael.tsang@jetstack.io >
2019-05-23 17:32:33 +01:00
Michael Tsang
7d67ae466e
Remove metrics field from controllers
...
Signed-off-by: Michael Tsang <michael.tsang@jetstack.io >
2019-05-20 11:06:11 +01:00