Commit Graph

1611 Commits

Author SHA1 Message Date
James Munnelly
93a7a89d4e Ensure finalizer is always removed after one sync
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-28 23:19:52 +00:00
James Munnelly
0656d6cf77 Update acmechallenges unit tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-28 22:06:03 +00:00
James Munnelly
dd8f98768b CleanUp ACME challenges after issuing and on delete using finalizer
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-28 22:05:47 +00:00
jetstack-bot
76f2eaff24
Merge pull request #1109 from munnerz/logs-on-failure
Print pod logs on e2e test case failure
2018-11-28 01:25:28 +00:00
jetstack-bot
516622ad55
Merge pull request #1061 from munnerz/ingress-shim-def-issuer-msg
Use Events API to report validation errors with ingress-shim
2018-11-27 17:18:28 +00:00
James Munnelly
2d28270d9f Print pod logs on e2e test case failure
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-27 14:21:25 +00:00
jetstack-bot
e0691e5827
Merge pull request #1060 from munnerz/orders-events
Add more Events to Orders and Challenges
2018-11-26 17:28:33 +00:00
James Munnelly
4232041710 Use test builder in ingress-shim units and fix tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-26 17:07:00 +00:00
jetstack-bot
e2c71e0876
Merge pull request #1062 from munnerz/order-errors
Add Errored type and mark orders as errored when creating fails
2018-11-26 16:48:33 +00:00
jetstack-bot
5a89e82b58
Merge pull request #1106 from heckj/tutorial-fix
fix numbering of steps in quickstart
2018-11-26 16:08:33 +00:00
Joe Heck
51aa3d7f4e fix numbering of steps in quickstart
Signed-off-by: Joe Heck <heckj@mac.com>
2018-11-26 07:50:55 -08:00
James Munnelly
d360eea5e4 Use Events API to report validation errors with ingress-shim
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-26 15:48:47 +00:00
jetstack-bot
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
jetstack-bot
2c74eabb1c
Merge pull request #819 from ccojocar/cert_secret_ref
Set the certificate as an owner of the secret
2018-11-26 15:06:33 +00:00
jetstack-bot
bbd459f1bf
Merge pull request #1055 from heckj/quickstart-guide
Add quick-start guide for nginx ingress controller
2018-11-26 14:20:34 +00:00
Louis Taylor
39dd82b8a2
Defer UpdateCertificateExpiry earlier
Signed-off-by: Louis Taylor <louis@kragniz.eu>
2018-11-26 13:13:57 +00:00
Louis Taylor
e5f60c1220
Update comment
Signed-off-by: Louis Taylor <louis@kragniz.eu>
2018-11-26 13:13:56 +00:00
Louis Taylor
0241f14263
Rename metric to certificate_expiration_timestamp_seconds
Signed-off-by: Louis Taylor <louis@kragniz.eu>
2018-11-26 13:13:55 +00:00
Louis Taylor
ce6ec9f2a8
Add licence boilerplate
Signed-off-by: Louis Taylor <louis@kragniz.eu>
2018-11-26 13:13:52 +00:00
Louis Taylor
fd30a2c7dc
Check for IsNotFound and IsInvalidData errors
Signed-off-by: Louis Taylor <louis@kragniz.eu>
2018-11-26 13:13:51 +00:00
Louis Taylor
83a06f9ab8
Update deps
Signed-off-by: Louis Taylor <louis@kragniz.eu>
2018-11-26 13:13:50 +00:00
Louis Taylor
80b21cb379
Remove struct name
Signed-off-by: Louis Taylor <louis@kragniz.eu>
2018-11-26 13:13:49 +00:00
Louis Taylor
297c8e25b9
Add metrics test
Signed-off-by: Louis Taylor <louis@kragniz.eu>
2018-11-26 13:13:48 +00:00
Louis Taylor
88b979b404
Remove zero case handling
Signed-off-by: Louis Taylor <louis@kragniz.eu>
2018-11-26 13:13:46 +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
jetstack-bot
99e44be850
Merge pull request #1098 from munnerz/challenges-no-error-check
Retry after a fixed 5s if self check is failing & adjust all controllers to use same rate limiter
2018-11-26 13:13:33 +00:00
jetstack-bot
26c7451b5b
Merge pull request #1023 from munnerz/fix-renew-bug
Schedule certificate renewal at the end of Certificate Sync function
2018-11-26 12:38:33 +00:00
Cosmin Cojocar
3766edcd12 Set the default value of enable-certificate-owner-ref to false
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
2018-11-26 09:48:02 +01:00
James Munnelly
8f3589e59a Fire warning if retrieving an order's certificate fails
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-23 14:30:59 +00:00
James Munnelly
826441f698 Add more Event messages to ACME Certificate issuer
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-23 14:11:09 +00:00
James Munnelly
447ad2d2ea Fire Event when creating a new Order
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-23 14:10:37 +00:00
James Munnelly
315a14ff70 Add more Events to Orders and Challenges
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-23 14:10:37 +00:00
Joe Heck
e9de1096a3 hopefully the last formatting tweak for this one
Signed-off-by: Joe Heck <heckj@mac.com>
2018-11-22 19:56:43 -08:00
Joe Heck
c027965ed5 updating and fixing markdown links
Signed-off-by: Joe Heck <heckj@mac.com>
2018-11-21 14:43:57 -08: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 Munnelly
73f65b9490 Retry after a fixed 5s if self check is failing
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-21 20:29:02 +00:00
jetstack-bot
58c0507c10
Merge pull request #1091 from yann-soubeyrand/update-strategy
chart: allow deployment strategy customization
2018-11-21 17:52:50 +00:00
Joe Heck
5930a0b8d5 a few last updates missed earlier
Signed-off-by: Joe Heck <heckj@mac.com>
2018-11-21 08:19:01 -08:00
Yann Soubeyrand
dbf21a6f32 chart: allow deployment strategy customization
Signed-off-by: Yann Soubeyrand <ysoubeyrand@leadformance.com>
2018-11-21 13:58:36 +01:00
Joe Heck
71aaad9063 remaining updates from feedback
Signed-off-by: Joe Heck <heckj@mac.com>
2018-11-19 11:23:30 -08:00
Matt Turner
15d5e6b637 Adding quick-start guide w/ nginx ingress controller
Signed-off-by: Joe Heck <heckj@mac.com>
2018-11-19 11:23:30 -08:00
jetstack-bot
5b8fd9415e
Merge pull request #1086 from munnerz/fix-dep-failures
Fix dep failures by running update-bazel
2018-11-16 18:31:14 +00:00
James Munnelly
b7b61b693c Run //hack:update-bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-16 13:34:06 +00:00
James Munnelly
bcb1d4e7c6 Only add manual tags to vendor/ targets
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-16 13:34:00 +00:00
James Munnelly
4c83e4efdb Revert "Remove extra buildozer modifications"
This reverts commit b50603a576.

Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-16 13:34:00 +00:00
jetstack-bot
62d6be80a3
Merge pull request #1082 from munnerz/ingress-shim-rule-cleanup
Fix bug with ingress path cleanup
2018-11-16 12:55:14 +00:00
James Munnelly
a303056b16 Fix bug with ingress path cleanup
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-16 12:19:53 +00:00
James Munnelly
b279e3a3fc Add failing test to ensure non cert-manager controlled ingress paths are not cleaned up
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-16 12:19:43 +00:00
jetstack-bot
9975ff4a8a
Merge pull request #1075 from gparvin/adding-not-after-to-certificate-status
changes to add a NotAfter field to the cert status
2018-11-16 10:11:01 +00:00
Gus Parvin
acc0fa887b set the NotAfter time as soon as the cert is parsed successfully
Signed-off-by: Gus Parvin <gparvin@us.ibm.com>
2018-11-15 14:30:31 +00:00