Commit Graph
49 Commits
Author SHA1 Message Date
James Munnelly 0fcc0c666c Update copyright header year
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-07 15:07:55 +00:00
James Munnelly f8fe9ef21f Remove requeue option and fix small race in controllers
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-29 12:23:21 +00:00
James Munnelly 1cbfa7ada7 Resync certificates on changes to their referenced issuers
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-28 17:01:15 +00:00
jetstack-botandGitHub a21ac37a74 Merge pull request #713 from kragniz/add-prometheus-metrics-endpoint
Add cert-manager specific metrics to Prometheus endpoint
2018-11-26 15:45:33 +00:00
Louis Taylor cf872a9fc9 Add prometheus metrics
Count certificate requests

Add certificate_expiry_time_seconds metric

Register certificate_expiry_time_seconds metric, fix kind switch and fix metric status result

Export nameForIssuer and remove unneccessary switch

Refactor metrics into controller context

Move metrics collection into functions

Move error checking for metrics collection back into sync function

Remove space

Add TODO

Move update certificate expiry function to metrics package

Refactor metrics functionality

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Run dep ensure

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Fix build

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Refactor

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Fix reporting errors

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Add comments

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Remove unused issuerType

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Update dep inputs-digest

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Don't update status

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Make metrics package level var

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Add prometheusMetricsServerMaxHeaderBytes comment

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Add failures metric

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Remove issue metrics

TODO: hopefully revert this at some point.
Signed-off-by: Louis Taylor <louis@kragniz.eu>

Assign metrics

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Update dep digest

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Fix copyright header

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Remove old metrics server

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Update bazel files

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Clean up

Signed-off-by: Louis Taylor <louis@kragniz.eu>
2018-11-26 13:13:44 +00:00
James Munnelly b103403ff7 Add default rate limiter used by all controllers
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-21 20:37:57 +00:00
James MunnellyandJames Munnelly 9214615d6e Fix race issues in ACME issue function. Add extended unit tests.
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 12:40:39 +01:00
James MunnellyandJames Munnelly 847d0c6152 Refactor controllers to return Response structures
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 12:40:38 +01:00
James MunnellyandJames Munnelly f8b1e653f3 Refactor ACME Issuer to create and manage Order resources
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 12:40:37 +01:00
James Munnelly 51195e4c5f Update license header and add header to every file
Signed-off-by: James Munnelly <james.munnelly@jetstack.io>
2018-08-13 15:53:37 +01:00
James Munnelly 9cc07eefe5 Update Certificate controller 2018-08-07 16:13:46 +01:00
James Munnelly 43373cd766 Adjust exponential backoff base value 2018-04-10 01:50:44 +01:00
James Munnelly b9813b13db Requeue Certificate if target secret is deleted 2018-04-10 01:31:09 +01:00
James Munnelly add2c76923 Don't trigger resync if ingresses or secrets change 2018-04-10 01:27:18 +01:00
James Munnelly c05d255675 Use AddRateLimited for the scheduled work queue 2018-04-10 01:05:37 +01:00
James Munnelly 47465d645b Use item based exponential backoff rate limiter 2018-04-09 18:33:36 +01:00
James Munnelly b934852775 Merge branch 'master' into acmev2 2018-04-09 16:52:34 +01:00
Louis Taylor 0961e24174 Remove namespace from more places 2018-04-06 11:20:24 +01:00
James Munnelly da0d45e3f4 Use DialContext in ACMEClient round tripper 2018-04-04 12:30:33 +01:00
James Munnelly 02f1b37caf Add correct HasSynced func 2018-03-23 18:50:46 +00:00
James Munnelly 649fdecdd2 Add comment explaining new HasSynced usages 2018-03-23 18:50:46 +00:00
James Munnelly 0a7cefecf4 Call Pod & Service lister HasSynced method in Cert controller construction 2018-03-23 18:50:46 +00:00
James Munnelly 514f9e9b3d Update third_party import paths 2018-01-15 22:07:51 +00:00
James Munnelly fa7e052ac1 Move to github.com/jetstack/cert-manager repo 2017-11-03 16:41:39 +00:00
James Munnelly eb4be6859e Update controllers and issuers for new SharedInformerFactory 2017-11-03 15:26:19 +00:00
James Munnelly 7875268247 Fix imports 2017-11-03 14:48:41 +00:00
James Munnelly 14cf0d495f Consistent use of glog 2017-10-16 14:50:27 +01:00
James Munnelly 852e250a69 Add clusterissuer controller 2017-09-22 00:10:42 +01:00
James Munnelly c4980baaca Use context throughout issuer implementation 2017-09-21 20:45:43 +01:00
James Munnelly 940b26127b Create context for each resource to be processed 2017-09-21 20:26:27 +01:00
James Munnelly 8bac175baa Plumb stopCh into workers 2017-09-21 20:23:17 +01:00
James Munnelly 7e33491161 Set issuer lister in certificate controller 2017-09-09 18:52:47 +01:00
James Munnelly f66855bd03 Add event recording. Split out cmd entrypoint. 2017-09-09 18:27:35 +01:00
James Munnelly 51971e921d Remove unused function 2017-09-09 11:49:04 +01:00
James Munnelly 7540beb74b Update imports 2017-09-09 02:13:03 +01:00
James Munnelly b53ede4e5a Wait for workers to process their work before exit 2017-09-09 01:48:10 +01:00
James Munnelly 960d46e302 Add leader election. Fix gracefully exiting. 2017-09-09 01:47:21 +01:00
James Munnelly d0212e8a3b Update controller to accept Options via context 2017-09-08 21:43:18 +01:00
James Munnelly 95aa3aab95 Update references to cert-manager informers 2017-08-22 12:13:13 +01:00
James Munnelly 7937b0384c Update import paths 2017-08-07 14:46:58 +01:00
James Munnelly 5926a53706 Refactor controller loop to only perform authorizations when issuing/renewing 2017-08-06 23:49:54 +01:00
James Munnelly dd02061738 Set up scheduled work queue for certificate renewals 2017-08-05 22:51:52 +01:00
James Munnelly ddfba77725 Set up resyncPeriod of 5 minutes on Certificate control loop 2017-08-05 01:21:01 +01:00
James Munnelly 42a5321510 Watch for certificate and ingress deletion in Certificate controller 2017-08-05 01:00:40 +01:00
James Munnelly 3fb49ad049 Refactor control loops to be more akin to kube-controller-manager 2017-08-05 00:35:54 +01:00
James Munnelly 630654a6d4 Update import paths 2017-07-22 12:19:40 +01:00
James Munnelly afbe0ba9c5 add start of authorization 2017-07-22 01:23:25 +01:00
James Munnelly 95cba8ab5f Add acme issuer. Implement 'Setup' method. Now manages ACME accounts. 2017-07-21 15:18:39 +01:00
James Munnelly 5e2222fa09 initial controller implementation 2017-07-19 20:29:02 +01:00