Commit Graph

19 Commits

Author SHA1 Message Date
Tim Ramlot
9db044b232
fix gci linter
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-04-29 13:47:25 +02:00
James Munnelly
81f22fd49c Upgrade k8s.io dependencies to v0.23.1
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-12-17 16:27:47 +00:00
joshvanl
4d40bdcd96 Fix tests after metrics comment changes.
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-12-07 07:42:27 +00:00
joshvanl
51e728688f Adds clock_time_seconds_gauge metric which returns the current clock
time, based on unix time since time began

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-12-02 11:27:22 +00:00
kit837
0f97e6d19d pass in clock.Clock for better test
Signed-off-by: kit837 <66801824+kit837@users.noreply.github.com>
2021-06-15 17:48:20 +00:00
kit837
228168cee9 Add clock_time_seconds metric
Fixes: https://github.com/jetstack/cert-manager/issues/3730
Related: https://github.com/jetstack/cert-manager/pull/3746

Signed-off-by: kit837 <66801824+kit837@users.noreply.github.com>
2021-06-14 23:25:46 +00:00
JoshVanL
63c5e5f5c6
Cleans up metrics pkg to not require locks, and split out resources into
different files

Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-05-21 10:47:00 +01:00
JoshVanL
3e7f7eb87e
Expose Prometheus listen address as a controller command line flag
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-05-18 18:21:03 +01:00
JoshVanL
9e98d7b948
Updates metrics package to be better consumable
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-05-18 17:41:14 +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
Michael Tsang
19eeb210c7 Add tests for updating certificate status
Signed-off-by: Michael Tsang <michael.tsang@jetstack.io>
Co-authored-by: Aleksandr Seleznev <alex@slznv.net>
2019-07-10 08:52:24 +01:00
Michael Tsang
2049f5a9eb Update bazel, update gofmt
Signed-off-by: Michael Tsang <michael.tsang@jetstack.io>
2019-06-06 17:59:51 +01:00
Michael Tsang
242adb08d1 Add tests for cleanup
Signed-off-by: Michael Tsang <michael.tsang@jetstack.io>
2019-06-06 17:59:51 +01:00
James Munnelly
0fcc0c666c Update copyright header year
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-07 15:07:55 +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
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