84 Commits

Author SHA1 Message Date
Manuel Rüger
81cd6ea2c3 go.mod: Bump dependencies
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-11-02 11:27:23 +01:00
Catherine Fang
75bce1c552 Upgrade dependency component-base to v0.25.2 and add TODO 2022-10-14 08:25:39 -04:00
Catherine Fang
37423f462f Import k8s metrics stability framework 2022-10-14 08:19:06 -04:00
Manuel Rüger
a345efe5e4 go.mod: Upgrade to k8s 1.25
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-10-05 18:14:19 +02:00
Manuel Rüger
03906e6e49 Update dependencies
go v1.18.3 -> v1.18.5
prometheus v2.35.0 -> v2.37.0
golangci-lint v1.46.2 -> v1.48.0

Several go dependencies, among them:

k8s v1.24.2 -> v1.24.4

cloudbuild image
v20211118-2f2d816b90 -> v20220609-2e4c91eb7e

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-08-22 18:56:39 +02:00
Manuel Rüger
2f20203c09 Replace pkg/errors with stdlib errors
github.com/pkg/errors is archived and not maintained anymore.
Replace it with stdlib functions.

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-08-15 20:25:09 +02:00
Manuel Rüger
824fb1cde7 Version bump Go to 1.18.3
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-06-02 12:16:21 +02:00
Kubernetes Prow Robot
1e782857c6 Merge pull request #1710 from hack-edu/master
feat: enable customresource metrics by configuration
2022-06-02 02:57:47 -07:00
Noah Perks Sloan
ea795572d8 chore: goimports 2022-05-31 14:28:29 -05:00
Noah Perks Sloan
e0e4f14412 feat: enable customresource metrics by configuration
The main use case is just surfacing fields from custom resources without having to write a lot of code for each one.
2022-05-31 14:24:28 -05:00
Braxton Schafer
5d57f47658 skip invalid IPs on pod_ips metric 2022-05-31 11:44:17 -05:00
Braxton Schafer
08ec940c28 Add kube_pod_ips gauge to pod metrics
Add experimental kube_pod_ips metric to show all IPs on a pod.
This is useful for dual-stack clusters where pods will have at least one
IPv4 and one IPv6 address. Current kube_pod_info metric only shows
the single IP exposed by .status.podIP.

Signed-off-by: Braxton Schafer <bschafer@cloudflare.com>
2022-05-31 11:42:56 -05:00
Manuel Rüger
42cd98e44a Bump to go 1.18.2, k8s 1.24, kind 0.14.0, prometheus 2.35.0
and several other go deps

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-05-26 20:09:21 +02:00
Manuel Rüger
c8168536a0 Update dependencies
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-05-04 23:59:43 +02:00
pgvishnuram
0a6761d765 fix CVE: CVE-2022-27191 in go.mod package 2022-04-25 13:19:53 +05:30
Manuel Rüger
f987770240 go.mod: Bump dependencies 2022-03-17 22:15:01 +01:00
Manuel Rüger
4443f88367 Bump go to 1.17.7 and dependencies
Also unpack only promtool during install

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-02-10 15:28:46 +01:00
Manuel Rüger
22067a0295 tools: Switch from benchcmp to benchstat
benchcmp is deprecated and thus replaced by benchstat

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-02-05 18:42:17 +01:00
Garrybest
acd5e74f50 Add a custom resource test based on foo object in samplecontroller
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-14 21:31:33 +08:00
fpetkovski
456c6c2193 Prepare 2.3.0 2021-12-09 15:13:03 +01:00
Manuel Rüger
787964ffdf Bump golang and kubernetes versions
golang 1.17.2 -> 1.17.3
prometheus 2.30.1 -> 2.31.1
kubernetes 0.22.2 -> 0.22.4

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2021-11-18 14:52:07 +01:00
Manuel Rüger
91929afc51 go.mod: Update dependencies 2021-10-27 02:07:27 +02:00
Manuel Rüger
c5b890c49e Update go to 1.17.1 and dependencies 2021-09-28 14:15:26 +02:00
Arunprasad Rajkumar
26a9a66205 test: Use go-cmp package to diff test expectation
Prior to this PR, it is pretty hard and manual to diff the test failure expectation
vs actual. This PR simplifies using github.com/google/go-cmp/cmp
package.

Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
2021-09-16 17:28:54 +05:30
Manuel Rüger
7e994c331f go.mod: Bump dependencies, move to go-1.17 2021-08-27 15:46:24 +02:00
Manuel Rüger
e3f0cbde58 Support Kubernetes 1.22.0 2021-08-05 14:21:13 +02:00
Manuel Rüger
97d877d58e go.mod: Update go dependencies and go version 2021-08-05 14:14:39 +02:00
Schlotter, Christian
d1a8f317a3 tests/e2e/main_test.go use new promlint package and drop github.com/prometheus/prometheus dependency
Signed-off-by: Schlotter, Christian <christian.schlotter@daimler.com>
2021-07-14 10:43:18 +02:00
Manuel Rüger
d5dcb84ee7 go.mod: Update and minimize dependencies
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2021-07-13 18:11:26 +02:00
Manuel Rüger
9e05f58833 go.mod: Update dependencies 2021-06-04 14:04:22 +02:00
Manuel Rüger
b730a291b5 go.mod: Update deps and golang
Use golang 1.16.4 https://groups.google.com/g/golang-announce/c/cu9SP4eSXMc
Bump dependency for prometheus/common to 0.23.0
Update Prometheus CLI to 2.26.0
2021-05-07 13:27:42 +02:00
Damien Grisonnet
5d42783e50 go.mod: bump k8s dependencies to v0.21.0
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-04-20 11:13:38 +02:00
Lili Cosic
2fc7f0b290 Merge branch 'release-2.0' into master 2021-04-13 09:59:27 +02:00
Manuel Rüger
b073aeee8f go.mod: Update dependencies 2021-04-06 11:59:50 +02:00
Manuel Rüger
8160f327b0 Merge branch 'release-2.0' into merge-release-2.0 2021-03-26 23:54:14 +01:00
Manuel Rüger
fbc21266fe go.mod: Update dependencies 2021-03-22 17:04:14 +01:00
Manuel Rüger
3ab8b19c29 go.mod: Update dependencies 2021-03-18 14:13:43 +01:00
Lili Cosic
81ca495c9e Merge remote-tracking branch 'upstream/release-2.0' into bring-release-2.0 2021-03-05 15:14:49 +01:00
lou-lan
ef2c5efb4e Bump go version in CI to 1.16+ 2021-03-01 22:10:03 +08:00
Mayank Shah
ec2a3ff831 Add support for native TLS
- introduce new flag `tls-config` to pass the path to tls config file

Signed-off-by: Mayank Shah <mayankshah1614@gmail.com>
2021-01-25 13:03:05 +05:30
Ben Ye
6a32904d1f add build_info metric for KSM
Signed-off-by: Ben Ye <yb532204897@gmail.com>
2021-01-06 10:50:02 -05:00
Lili Cosic
a164dced6d go.mod, go.sum: Bump to k8s clients to v1.20 2020-12-17 14:10:50 +01:00
Lili Cosic
f76d05ff27 go.mod,go.sum 2020-11-20 15:31:35 +01:00
Lili Cosic
37e834eca2 go.mod,go.sum 2020-11-18 15:59:19 +01:00
Manuel Rüger
99bf43405f Fix go version in go.mod 2020-10-15 17:16:51 +02:00
Manuel Rüger
4de0c3ed14 Update to golang-1.15 2020-10-15 16:15:05 +02:00
Lili Cosic
63da67d207 go.mod,go.sum: Bump klog to v2 and client-go to 1.19 2020-10-05 15:29:12 +02:00
Quentin Bisson
7250bc2b5c Update go module path to k8s.io/kube-state-metrics/v2
Signed-off-by: Quentin Bisson <quentin@giantswarm.io>
2020-09-21 10:58:08 +02:00
Lili Cosic
f2714d918e go.sum,go.mod,vendor: Bump jb 2020-09-15 12:31:35 +02:00
Ben Ye
4d8d85f467 use promauto to register metrics
Signed-off-by: Ben Ye <yb532204897@gmail.com>
2020-09-13 19:07:47 -04:00