38aeb4deed
Stable comparison in test
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-03-01 11:50:32 +01:00
b7aa886546
Namespace external metrics ( #259 )
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-02-19 11:11:29 +01:00
b313c963b6
Update dependencies
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-02-01 10:26:01 +01:00
461869c69b
Fix response on no metrics found ( #67 )
...
Fixes the response from `GetMetricsBySelector` in case no metrics are
found. This issue caused a panic in kube-controller-manager:
https://github.com/kubernetes/kubernetes/pull/80392
Fix #40
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2019-07-26 20:35:17 +02:00
888e76b748
Fix all errors from golangci-lint command
...
Signed-off-by: Arjun Naik <arjun.rn@gmail.com >
2019-04-27 15:54:15 +02:00
dfeae82cae
Upgrade all pacakges to autoscalingv2beta2 ( #39 )
...
Signed-off-by: Arjun Naik <arjun.rn@gmail.com >
2019-04-03 10:23:52 +02:00
e3ee745777
Testing multiple metrics inserts with different Group/Resources/Namesapces
...
Signed-off-by: Muhammad Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2018-11-22 16:36:51 +01:00
28b3b3b2b7
Testing inserting multiple external metric values
...
Signed-off-by: Muhammad Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2018-11-21 18:04:55 +01:00
be9b85c3cc
Test errors in metric_store.go
...
Adding tests for error cases in metric_store.go. This will primarily
protect against regression.
Signed-off-by: Muhammad Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2018-11-21 17:28:00 +01:00
d50771094a
Making metrics TTL configurable per instance of metric store
...
Avoiding the global var and making metrics TTL configurable per
metric store
Signed-off-by: Muhammad Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2018-11-20 16:34:17 +01:00
553f8b5993
Testing that metrics with TTL > now are not removed
...
This test mostly serves as protection against regression
Signed-off-by: Muhammad Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2018-11-20 11:00:13 +01:00
b1745c5eed
Making TTL configurable, at least globally
...
Making metrics expiration TTL configurable globally configurable.
This is so RemoveExpired can be tested. Not making the TTL configurable
per metric yet because it could change behaviour in production.
Signed-off-by: Muhammad Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2018-11-20 10:34:44 +01:00
49cdca4c68
Testing expired metrics' removal
...
Testing that metrics get removed once expired. Tests are failing
because metric.TTL isn't configurable at the moment
Signed-off-by: Muhammad Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2018-11-19 23:28:06 +01:00
7c8c239d18
Testing External Metrics Storage
...
Added a testcase for insert/list/get an external metric
Signed-off-by: Muhammad Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2018-11-19 15:57:51 +01:00
fb1a08195d
Testing GetMetricsBySelector
...
Adding test cases to get metrics by label selector
Signed-off-by: Muhammad Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2018-11-19 14:55:35 +01:00
669eb2b441
Making the tests table driven
...
Adding test cases to insert/list/get a namespaced and a non-namespaced
resource metric
Signed-off-by: Muhammad Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2018-11-19 14:10:21 +01:00
7e247ce0d4
Adding a basic test for the metricStore
...
Signed-off-by: Muhammad Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2018-11-15 18:05:52 +01:00