Skip to content

Commit 0cbabf9

Browse files
authored
Merge pull request #1908 from kubernetes/release-2.7
Merge Release 2.7 back to master branch
2 parents 3cf1b16 + abe3fd3 commit 0cbabf9

17 files changed

+70
-36
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## v2.7.0 / 2022-11-25
2+
3+
Note: Experimental VerticalPodAutoscaler metrics are considered deprecated in this release and will be removed in v2.9.0.
4+
Please use CustomResourceStateMetrics to gather metrics from VPA resources. See: #1718
5+
6+
Note: Experimental CustomResourceState changed their naming convention for better usability.
7+
The name of the CRD used to be interpolated into the name of the metric which made it impossible to aggregate a CRD across different versions.
8+
This was changed to have the GVK information represented as labels:
9+
kube_myteam_io_v1_Foo_uptime -> kube_crd_uptime{group="myteam.io", kind="Foo", version="v1"}
10+
See: #1847
11+
12+
* [CHANGE] Deprecate VerticalPodAutoscaler metrics #1835 @rexagod
13+
* [CHANGE] Recommend kube-scheduler metrics for container resource limits and requests #1849 @rexagod
14+
* [FEATURE] Add experimental kube_pod_container_status_last_terminated_exitcode metric #1752 @ssabo
15+
* [FEATURE] Introduce custom-resources-only flag #1813 @bavarianbidi
16+
* [FEATURE] Allow allowlist filtering by wildcard key #1823 @rexagod
17+
* [FEATURE] Add ContainerResourceSourceType to hpa spec and target metrics #1831 @whitebear009
18+
* [FEATURE] Represent group, version and kind of a resource as labels #1850 @rexagod
19+
* [FEATURE] Sharding metrics per node via fieldSelector #1864 @CatherineF-dev
20+
* [FEATURE] Add experimental StatefulSet retention policy metrics #1876 @mattcary
21+
* [FEATURE] Allow labelFromKey field for all applicable metric types #1880 @rexagod
22+
* [FEATURE] Introduce Viper, allow hot-reload on config change #1827 @rexagod
23+
* [FEATURE] Introduce Cobra, allow configuration via environment variables #1834 @rexagod
24+
* [FEATURE] Add experimental kube_node_deletion_timestamp metric #1890 @rexagod
25+
* [FEATURE] Support autoscaling/v2 resources for HorizontalPodAutoscaler #1906 @JoaoBraveCoding
26+
* [FEATURE] Add IngressClass metrics #1905 @kaitoii11
27+
* [ENHANCEMENT] Import Kubernetes metrics stability framework #1844 @CatherineF-dev
28+
* [ENHANCEMENT] Promote kube_pod_container_status_waiting_reason and kube_deployment_status_replicas_ready to stable #1821 @CatherineF-dev
29+
* [ENHANCEMENT] Build with Kubernetes 1.25 and go 1.19 #1819 @mrueg
30+
* [BUGFIX] Handle singular labels in allowlist #1826 @rexagod
31+
* [BUGFIX] Do not expose ingress path metric when service is nil #1841 @evir35
32+
* [BUGFIX] Allow lease metrics to be exported across all namespaces #1845 @lantingchiang
33+
134
## v2.6.0 / 2022-08-26
235
* [FEATURE] Add local storage labels to kube_persistentvolume_info #1814 @nabokihms
336
* [FEATURE] Add support for StateSet and Info metrics for Custom-Resource State #1777 @chrischdi

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Generally, it is recommended to use the latest release of kube-state-metrics. If
7676
| **v2.4.2** | v1.23 |
7777
| **v2.5.0** | v1.24 |
7878
| **v2.6.0** | v1.24 |
79+
| **v2.7.0** | v1.25 |
7980
| **master** | v1.25 |
8081

8182

@@ -88,7 +89,7 @@ release.
8889
#### Container Image
8990

9091
The latest container image can be found at:
91-
* `registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.6.0` (arch: `amd64`, `arm`, `arm64`, `ppc64le` and `s390x`)
92+
* `registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.7.0` (arch: `amd64`, `arm`, `arm64`, `ppc64le` and `s390x`)
9293

9394
### Metrics Documentation
9495

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.0
1+
2.7.0

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.6.0
7+
app.kubernetes.io/version: 2.7.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.6.0
7+
app.kubernetes.io/version: 2.7.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.6.0
7+
app.kubernetes.io/version: 2.7.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.6.0
7+
app.kubernetes.io/version: 2.7.0
88
name: kube-state-metrics
99
namespace: kube-system
1010
rules:

examples/autosharding/service-account.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ metadata:
55
labels:
66
app.kubernetes.io/component: exporter
77
app.kubernetes.io/name: kube-state-metrics
8-
app.kubernetes.io/version: 2.6.0
8+
app.kubernetes.io/version: 2.7.0
99
name: kube-state-metrics
1010
namespace: kube-system

examples/autosharding/service.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.6.0
7+
app.kubernetes.io/version: 2.7.0
88
name: kube-state-metrics
99
namespace: kube-system
1010
spec:

examples/autosharding/statefulset.yaml

Lines changed: 3 additions & 3 deletions
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.6.0
7+
app.kubernetes.io/version: 2.7.0
88
name: kube-state-metrics
99
namespace: kube-system
1010
spec:
@@ -18,7 +18,7 @@ spec:
1818
labels:
1919
app.kubernetes.io/component: exporter
2020
app.kubernetes.io/name: kube-state-metrics
21-
app.kubernetes.io/version: 2.6.0
21+
app.kubernetes.io/version: 2.7.0
2222
spec:
2323
automountServiceAccountToken: true
2424
containers:
@@ -34,7 +34,7 @@ spec:
3434
valueFrom:
3535
fieldRef:
3636
fieldPath: metadata.namespace
37-
image: registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.6.0
37+
image: registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.7.0
3838
livenessProbe:
3939
httpGet:
4040
path: /healthz

0 commit comments

Comments
 (0)