prometheus-adapter/cmd/adapter
Arunprasad Rajkumar aed49ff54f
fix: incorrect type used for openapi spec
Prior to this fix, openapi spec for prometheus-adapter apiextension was based on the type "k8s.io/sample-apiserver/pkg/apiserver" which is incorrect. Due to the incorrect type, `kubectl explain podmetrics` (or nodemetrics) wasn't showing any doc for any resources from metrics.k8s.io/v1beta1.

This changeset fixes the problem by using the right type(sigs.k8s.io/metrics-server/pkg/api) for the openapi generation.

This also helped to remove the sample-apiserver dependency from
prometheus-adapter.

Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
2021-07-15 19:39:59 +05:30
..
testdata add TLS auth for accessing Prometheus 2021-02-22 21:39:58 +01:00
adapter.go fix: incorrect type used for openapi spec 2021-07-15 19:39:59 +05:30
adapter_test.go add TLS auth for accessing Prometheus 2021-02-22 21:39:58 +01:00