Skip to content

Commit dff9a1e

Browse files
authored
Merge pull request #2697 from kubernetes/release-2.16
chore: Merge v2.16 back into `main`
2 parents edc9db4 + 291a962 commit dff9a1e

27 files changed

+63
-50
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## v2.16.0 / 2025-06-23
2+
3+
## Note
4+
5+
* This release builds with Golang `v1.24.4`
6+
* This release builds with `k8s.io/client-go`: `v0.32.6`
7+
8+
* [FEATURE] Add a `reclaim_policy` label to the `kube_persistentvolume_info` metric by @SuperQ in <https://github.com/kubernetes/kube-state-metrics/pull/2615>
9+
* [FEATURE] Use dlclark/regexp2 over standard library's package to support lookarounds by @rexagod in <https://github.com/kubernetes/kube-state-metrics/pull/2616>
10+
* [BUGFIX] Report correct values in `kube_pod_status_reason` metric by @carlosmorenokm1 in <https://github.com/kubernetes/kube-state-metrics/pull/2644>
11+
* [FEATURE] Add add `pathType` to `kube_ingress_path` by @rexagod in <https://github.com/kubernetes/kube-state-metrics/pull/2670>
12+
* [FEATURE] Introduce object limits by @mrueg in <https://github.com/kubernetes/kube-state-metrics/pull/2626>
13+
* [BUGFIX] Close reflectors once their corresponding CRDs are dropped by @rexagod in <https://github.com/kubernetes/kube-state-metrics/pull/2672>
14+
* [FEATURE] Incorporate `WithAuthenticationAndAuthorization` to support endpoint authn/z by @mrueg in <https://github.com/kubernetes/kube-state-metrics/pull/2686>
15+
116
## v2.15.0 / 2025-02-03
217

318
## Note

MAINTAINER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
kube-state-metrics is welcoming contributions from the community. If you are interested in intensifying your contributions and becoming a maintainer, this doc describes the necessary steps.
44

5-
As part of the Kubernetes project, we use the community membership process as described [here](https://github.com/kubernetes/community/blob/master/community-membership.md). We do not adhere strictly to the numbers of contributions and reviews. Still as becoming a maintainer is a trust-based process and we desire positive outcomes for the project, we look for a long-term interest and engagement.
5+
As part of the Kubernetes project, we rely on the [community membership process](https://github.com/kubernetes/community/blob/master/community-membership.md). We do not adhere strictly to the numbers of contributions and reviews. Still as becoming a maintainer is a trust-based process and we desire positive outcomes for the project, we look for a long-term interest and engagement.
66

77
## Adding a new reviewer
88

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ GIT_COMMIT ?= $(shell git rev-parse --short HEAD)
1313
OS ?= $(shell uname -s | tr A-Z a-z)
1414
ALL_ARCH = amd64 arm arm64 ppc64le s390x
1515
PKG = github.com/prometheus/common
16-
PROMETHEUS_VERSION = 2.55.1
17-
GO_VERSION = 1.24.1
16+
PROMETHEUS_VERSION = 3.4.1
17+
GO_VERSION = 1.24.4
1818
IMAGE = $(REGISTRY)/kube-state-metrics
1919
MULTI_ARCH_IMG = $(IMAGE)-$(ARCH)
2020
USER ?= $(shell id -u -n)
2121
HOST ?= $(shell hostname)
22-
MARKDOWNLINT_CLI2_VERSION = 0.17.2
22+
MARKDOWNLINT_CLI2_VERSION = 0.18.1
2323

2424
DOCKER_CLI ?= docker
2525
PROMTOOL_CLI ?= promtool

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ are deleted they are no longer visible on the `/metrics` endpoint.
6868
#### Kubernetes Version
6969

7070
kube-state-metrics uses [`client-go`](https://github.com/kubernetes/client-go) to talk with
71-
Kubernetes clusters. The supported Kubernetes cluster version is determined by `client-go`.
72-
The compatibility matrix for client-go and Kubernetes cluster can be found
73-
[here](https://github.com/kubernetes/client-go#compatibility-matrix).
71+
Kubernetes clusters. The supported Kubernetes cluster version is determined by
72+
[`client-go`](https://github.com/kubernetes/client-go#compatibility-matrix).
7473
All additional compatibility is only best effort, or happens to still/already be supported.
7574

7675
#### Compatibility matrix
@@ -80,11 +79,11 @@ Generally, it is recommended to use the latest release of kube-state-metrics. If
8079

8180
| kube-state-metrics | Kubernetes client-go Version |
8281
|--------------------|:----------------------------:|
83-
| **v2.11.0** | v1.28 |
8482
| **v2.12.0** | v1.29 |
8583
| **v2.13.0** | v1.30 |
8684
| **v2.14.0** | v1.31 |
8785
| **v2.15.0** | v1.32 |
86+
| **v2.16.0** | v1.32 |
8887
| **main** | v1.32 |
8988

9089
#### Resource group version compatibility
@@ -97,8 +96,8 @@ release.
9796

9897
The latest container image can be found at:
9998

100-
* `registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.15.0` (arch: `amd64`, `arm`, `arm64`, `ppc64le` and `s390x`)
101-
* View all multi-architecture images at [here](https://explore.ggcr.dev/?image=registry.k8s.io%2Fkube-state-metrics%2Fkube-state-metrics:v2.15.0)
99+
* `registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.16.0` (arch: `amd64`, `arm`, `arm64`, `ppc64le` and `s390x`)
100+
* [Multi-architecture images](https://explore.ggcr.dev/?image=registry.k8s.io%2Fkube-state-metrics%2Fkube-state-metrics:v2.16.0)
102101

103102
### Metrics Documentation
104103

@@ -170,7 +169,7 @@ kube_state_metrics_total_shards 1
170169
```
171170

172171
`kube_state_metrics_build_info` is used to expose version and other build information. For more usage about the info pattern,
173-
please check the blog post [here](https://www.robustperception.io/exposing-the-software-version-to-prometheus).
172+
please check this [blog post](https://www.robustperception.io/exposing-the-software-version-to-prometheus).
174173
Sharding metrics expose `--shard` and `--total-shards` flags and can be used to validate
175174
run-time configuration, see [`/examples/prometheus-alerting-rules`](./examples/prometheus-alerting-rules).
176175

README.md.tpl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ are deleted they are no longer visible on the `/metrics` endpoint.
6868
#### Kubernetes Version
6969

7070
kube-state-metrics uses [`client-go`](https://github.com/kubernetes/client-go) to talk with
71-
Kubernetes clusters. The supported Kubernetes cluster version is determined by `client-go`.
72-
The compatibility matrix for client-go and Kubernetes cluster can be found
73-
[here](https://github.com/kubernetes/client-go#compatibility-matrix).
71+
Kubernetes clusters. The supported Kubernetes cluster version is determined by
72+
[`client-go`](https://github.com/kubernetes/client-go#compatibility-matrix).
7473
All additional compatibility is only best effort, or happens to still/already be supported.
7574

7675
#### Compatibility matrix
@@ -99,7 +98,7 @@ The latest container image can be found at:
9998
{{ (index . (math.Sub (len .) 2)).version -}}
10099
{{ end }}
101100
* `registry.k8s.io/kube-state-metrics/kube-state-metrics:{{ template "get-latest-release" (datasource "config").compat }}` (arch: `amd64`, `arm`, `arm64`, `ppc64le` and `s390x`)
102-
* View all multi-architecture images at [here](https://explore.ggcr.dev/?image=registry.k8s.io%2Fkube-state-metrics%2Fkube-state-metrics:{{ template "get-latest-release" (datasource "config").compat -}})
101+
* [Multi-architecture images](https://explore.ggcr.dev/?image=registry.k8s.io%2Fkube-state-metrics%2Fkube-state-metrics:{{ template "get-latest-release" (datasource "config").compat -}})
103102

104103
### Metrics Documentation
105104

@@ -171,7 +170,7 @@ kube_state_metrics_total_shards 1
171170
```
172171

173172
`kube_state_metrics_build_info` is used to expose version and other build information. For more usage about the info pattern,
174-
please check the blog post [here](https://www.robustperception.io/exposing-the-software-version-to-prometheus).
173+
please check this [blog post](https://www.robustperception.io/exposing-the-software-version-to-prometheus).
175174
Sharding metrics expose `--shard` and `--total-shards` flags and can be used to validate
176175
run-time configuration, see [`/examples/prometheus-alerting-rules`](./examples/prometheus-alerting-rules).
177176

data.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# The purpose of this config is to keep all versions in a single file and make them machine accessible
22

33
# Marks the latest release
4-
version: "2.15.0"
4+
version: "2.16.0"
55

66
# List at max 5 releases here + the main branch
77
compat:
8-
- version: "v2.11.0"
9-
kubernetes: "1.28"
108
- version: "v2.12.0"
119
kubernetes: "1.29"
1210
- version: "v2.13.0"
@@ -15,5 +13,7 @@ compat:
1513
kubernetes: "1.31"
1614
- version: "v2.15.0"
1715
kubernetes: "1.32"
16+
- version: "v2.16.0"
17+
kubernetes: "1.32"
1818
- version: "main"
1919
kubernetes: "1.32"

examples/autosharding/cluster-role-binding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
labels:
55
app.kubernetes.io/component: exporter
66
app.kubernetes.io/name: kube-state-metrics
7-
app.kubernetes.io/version: 2.15.0
7+
app.kubernetes.io/version: 2.16.0
88
name: kube-state-metrics
99
roleRef:
1010
apiGroup: rbac.authorization.k8s.io

examples/autosharding/cluster-role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
labels:
55
app.kubernetes.io/component: exporter
66
app.kubernetes.io/name: kube-state-metrics
7-
app.kubernetes.io/version: 2.15.0
7+
app.kubernetes.io/version: 2.16.0
88
name: kube-state-metrics
99
rules:
1010
- apiGroups:

examples/autosharding/role-binding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
labels:
55
app.kubernetes.io/component: exporter
66
app.kubernetes.io/name: kube-state-metrics
7-
app.kubernetes.io/version: 2.15.0
7+
app.kubernetes.io/version: 2.16.0
88
name: kube-state-metrics
99
namespace: kube-system
1010
roleRef:

examples/autosharding/role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
labels:
55
app.kubernetes.io/component: exporter
66
app.kubernetes.io/name: kube-state-metrics
7-
app.kubernetes.io/version: 2.15.0
7+
app.kubernetes.io/version: 2.16.0
88
name: kube-state-metrics
99
namespace: kube-system
1010
rules:

0 commit comments

Comments
 (0)