Skip to content

Commit c90c81c

Browse files
authored
Merge pull request #2214 from rexagod/release-2.10
chore: Restructure `release-2.10` for `v2.10.1`
2 parents 995f83e + 73c6360 commit c90c81c

23 files changed

+271
-295
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ If the matter is security related, please disclose it privately see https://gith
2121
**Anything else we need to know?**:
2222

2323
**Environment**:
24-
25-
* kube-state-metrics version:
26-
* Kubernetes version (use `kubectl version`):
27-
* Cloud provider or hardware configuration:
28-
* Other info:
24+
- kube-state-metrics version:
25+
- Kubernetes version (use `kubectl version`):
26+
- Cloud provider or hardware configuration:
27+
- Other info:

.github/workflows/ci.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
E2E_SETUP_KIND: yes
2121
E2E_SETUP_KUBECTL: yes
2222
SUDO: sudo
23-
GO_VERSION: "^1.21"
23+
GO_VERSION: "^1.20"
2424
GOLANGCI_LINT_VERSION: "v1.54.2"
2525

2626
jobs:
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Check out code into the Go module directory
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v3
3333

3434
- name: Set up Go 1.x
3535
uses: actions/setup-go@v4
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: ubuntu-latest
5252
steps:
5353
- name: Check out code into the Go module directory
54-
uses: actions/checkout@v4
54+
uses: actions/checkout@v3
5555

5656
- name: Set up Go 1.x
5757
uses: actions/setup-go@v4
@@ -72,7 +72,7 @@ jobs:
7272
runs-on: ubuntu-latest
7373
steps:
7474
- name: Check out code into the Go module directory
75-
uses: actions/checkout@v4
75+
uses: actions/checkout@v3
7676

7777
- name: Set up Go 1.x
7878
uses: actions/setup-go@v4
@@ -93,7 +93,7 @@ jobs:
9393
runs-on: ubuntu-latest
9494
steps:
9595
- name: Check out code into the Go module directory
96-
uses: actions/checkout@v4
96+
uses: actions/checkout@v3
9797

9898
- name: Set up Go 1.x
9999
uses: actions/setup-go@v4
@@ -114,7 +114,7 @@ jobs:
114114
runs-on: ubuntu-latest
115115
steps:
116116
- name: Check out code into the Go module directory
117-
uses: actions/checkout@v4
117+
uses: actions/checkout@v3
118118

119119
- name: Set up Go 1.x
120120
uses: actions/setup-go@v4
@@ -135,7 +135,7 @@ jobs:
135135
runs-on: ubuntu-latest
136136
steps:
137137
- name: Check out code into the Go module directory
138-
uses: actions/checkout@v4
138+
uses: actions/checkout@v3
139139

140140
- name: Setup promtool
141141
run: |
@@ -150,7 +150,7 @@ jobs:
150150
runs-on: ubuntu-latest
151151
steps:
152152
- name: Check out code into the Go module directory
153-
uses: actions/checkout@v4
153+
uses: actions/checkout@v3
154154

155155
- name: Set up Go 1.x
156156
uses: actions/setup-go@v4
@@ -171,7 +171,7 @@ jobs:
171171
runs-on: ubuntu-latest
172172
steps:
173173
- name: Check out code into the Go module directory
174-
uses: actions/checkout@v4
174+
uses: actions/checkout@v3
175175

176176
- name: Set up Go 1.x
177177
uses: actions/setup-go@v4
@@ -192,7 +192,7 @@ jobs:
192192
runs-on: ubuntu-latest
193193
steps:
194194
- name: Check out code into the Go module directory
195-
uses: actions/checkout@v4
195+
uses: actions/checkout@v3
196196

197197
- name: Set up Go 1.x
198198
uses: actions/setup-go@v4

.github/workflows/govulncheck.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
- cron: '0 0 * * 1'
77

88
env:
9-
GO_VERSION: "^1.21"
9+
GO_VERSION: "^1.20"
1010

1111
jobs:
1212
ci-security-checks:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v3
1616
name: Checkout code
1717
- name: Set up Go 1.x
1818
uses: actions/setup-go@v4

.markdownlint-cli2.jsonc

-17
This file was deleted.

CHANGELOG.md

+60-66
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,32 @@
1-
## v2.10.1 / 2023-09-13
1+
## v2.10.1 / 2023-10-09
22

33
### Note
4+
- This release addresses a regression introduced in https://github.com/kubernetes/kube-state-metrics/pull/2105.
45

5-
* This release addresses a regression introduced in <https://github.com/kubernetes/kube-state-metrics/pull/2105>.
6-
7-
* [BUGFIX] Remove FieldSelector from non-namespaced resources by @mrueg and @dgrisonnet in <https://github.com/kubernetes/kube-state-metrics/pull/2190>
6+
* [BUGFIX] Remove FieldSelector from non-namespaced resources by @mrueg and @dgrisonnet in https://github.com/kubernetes/kube-state-metrics/pull/2190
87
* [ENHANCEMENT] Bump Go to v1.20.8
98

109
## v2.10.0 / 2023-08-31
1110

1211
### Note
13-
14-
* Label and annotation metrics aren't exposed by default anymore to reduce the memory usage of the default configuration of kube-state-metrics. Before this change, they used to only include the name and namespace of the objects which is not relevant to users not opting in these metrics.
15-
16-
* [BUGFIX] Log no _info suffix in name only once per reading the configuration for custommetrics by @chrischdi in <https://github.com/kubernetes/kube-state-metrics/pull/2157>
17-
* [BUGFIX] Don't crash on non-existent valueFrom path values by @chihshenghuang in <https://github.com/kubernetes/kube-state-metrics/pull/2140>
18-
* [BUGFIX] Index out of range in metrics_store.SanitizeHeaders by @mrueg in <https://github.com/kubernetes/kube-state-metrics/pull/2166>
19-
* [BUGFIX] Always extract the headers but only write it when we have custommetrics by @chrischdi in <https://github.com/kubernetes/kube-state-metrics/pull/2154>
20-
* [BUGFIX] Add filtering for Lease metrics by @ntoofu in <https://github.com/kubernetes/kube-state-metrics/pull/2122>
21-
* [FEATURE] Implement kube_pod_status_initialized_time by @opeco17 in <https://github.com/kubernetes/kube-state-metrics/pull/2148>
22-
* [FEATURE] Disable labels and annotations metrics when metric-annotations-… by @opeco17 in <https://github.com/kubernetes/kube-state-metrics/pull/2145>
23-
* [FEATURE] Add webhooks client config service metrics by @dgrisonnet in <https://github.com/kubernetes/kube-state-metrics/pull/2114>
24-
* [FEATURE] Support kube_persistentvolumeclaim_deletion_timestamp by @maxime1907 in <https://github.com/kubernetes/kube-state-metrics/pull/2074>
25-
* [FEATURE] Support kube_persistentvolume_deletion_timestamp by @maxime1907 in <https://github.com/kubernetes/kube-state-metrics/pull/2075>
26-
* [FEATURE] Adds new metric `kube_pod_service_account` by @swarup-stripe in <https://github.com/kubernetes/kube-state-metrics/pull/2096>
27-
* [FEATURE] Add volumemode to PVC info metric by @machadovilaca in <https://github.com/kubernetes/kube-state-metrics/pull/2134>
28-
* [FEATURE] Enable metric-annotations-allowlist and metric-labels-allowlist for ResourceQuota by @opeco17 in <https://github.com/kubernetes/kube-state-metrics/pull/2175>
29-
* [FEATURE] Allow field KV general matching by @rexagod in <https://github.com/kubernetes/kube-state-metrics/pull/2067>
30-
* [FEATURE] Support hot reload for kubeconfig by @opeco17 in <https://github.com/kubernetes/kube-state-metrics/pull/2144>
31-
* [FEATURE] Add support for endpoint topology routing hints by @MarkSRobinson in <https://github.com/kubernetes/kube-state-metrics/pull/2090>
12+
- Label and annotation metrics aren't exposed by default anymore to reduce the memory usage of the default configuration of kube-state-metrics. Before this change, they used to only include the name and namespace of the objects which is not relevant to users not opting in these metrics.
13+
14+
* [BUGFIX] Log no _info suffix in name only once per reading the configuration for custommetrics by @chrischdi in https://github.com/kubernetes/kube-state-metrics/pull/2157
15+
* [BUGFIX] Don't crash on non-existent valueFrom path values by @chihshenghuang in https://github.com/kubernetes/kube-state-metrics/pull/2140
16+
* [BUGFIX] Index out of range in metrics_store.SanitizeHeaders by @mrueg in https://github.com/kubernetes/kube-state-metrics/pull/2166
17+
* [BUGFIX] Always extract the headers but only write it when we have custommetrics by @chrischdi in https://github.com/kubernetes/kube-state-metrics/pull/2154
18+
* [BUGFIX] Add filtering for Lease metrics by @ntoofu in https://github.com/kubernetes/kube-state-metrics/pull/2122
19+
* [FEATURE] Implement kube_pod_status_initialized_time by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2148
20+
* [FEATURE] Disable labels and annotations metrics when metric-annotations-… by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2145
21+
* [FEATURE] Add webhooks client config service metrics by @dgrisonnet in https://github.com/kubernetes/kube-state-metrics/pull/2114
22+
* [FEATURE] Support kube_persistentvolumeclaim_deletion_timestamp by @maxime1907 in https://github.com/kubernetes/kube-state-metrics/pull/2074
23+
* [FEATURE] Support kube_persistentvolume_deletion_timestamp by @maxime1907 in https://github.com/kubernetes/kube-state-metrics/pull/2075
24+
* [FEATURE] Adds new metric `kube_pod_service_account` by @swarup-stripe in https://github.com/kubernetes/kube-state-metrics/pull/2096
25+
* [FEATURE] Add volumemode to PVC info metric by @machadovilaca in https://github.com/kubernetes/kube-state-metrics/pull/2134
26+
* [FEATURE] Enable metric-annotations-allowlist and metric-labels-allowlist for ResourceQuota by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2175
27+
* [FEATURE] Allow field KV general matching by @rexagod in https://github.com/kubernetes/kube-state-metrics/pull/2067
28+
* [FEATURE] Support hot reload for kubeconfig by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2144
29+
* [FEATURE] Add support for endpoint topology routing hints by @MarkSRobinson in https://github.com/kubernetes/kube-state-metrics/pull/2090
3230

3331
## v2.9.2 / 2023-05-30
3432

@@ -44,8 +42,8 @@ The changes mentioned below are only the user-facing ones. For a list of the com
4442

4543
### Note
4644

47-
* The deprecated experimental VerticalPodAutoscaler metrics are no longer supported, and have been removed. We recommend to use CustomResourceState metrics to gather metrics from custom resources like the Vertical Pod Autoscaler.
48-
* #2004 regulated label names to adhere with [OTel-Prometheus standards](https://github.com/open-telemetry/opentelemetry-specification/blob/8946dfc6a2302f78b0224fcc3f4dfb816a7bb1f4/specification/compatibility/prometheus_and_openmetrics.md?plain=1#L224-L229), so existing label names that do not follow the same may be replaced by the ones that do. Please refer to the PR for more details.
45+
- The deprecated experimental VerticalPodAutoscaler metrics are no longer supported, and have been removed. We recommend to use CustomResourceState metrics to gather metrics from custom resources like the Vertical Pod Autoscaler.
46+
- #2004 regulated label names to adhere with [OTel-Prometheus standards](https://github.com/open-telemetry/opentelemetry-specification/blob/8946dfc6a2302f78b0224fcc3f4dfb816a7bb1f4/specification/compatibility/prometheus_and_openmetrics.md?plain=1#L224-L229), so existing label names that do not follow the same may be replaced by the ones that do. Please refer to the PR for more details.
4947

5048
* [BUGFIX] Adhere to OTel-Prometheus standard for labels #2004 @rexagod
5149
* [BUGFIX] Respect relative paths for label resolutions #2007 @rexagod
@@ -128,7 +126,6 @@ See: #1847
128126
* [BUGFIX] Allow lease metrics to be exported across all namespaces #1845 @lantingchiang
129127

130128
## v2.6.0 / 2022-08-26
131-
132129
* [FEATURE] Add local storage labels to kube_persistentvolume_info #1814 @nabokihms
133130
* [FEATURE] Add support for StateSet and Info metrics for Custom-Resource State #1777 @chrischdi
134131
* [FEATURE] Add support for Rolebinding resource metrics #1799 @kaitoii11
@@ -162,11 +159,9 @@ See: #1847
162159
* [BUGFIX] Properly initialize KSM Server test #1699 @fpetkovski
163160

164161
## v2.4.2 / 2022-02-10
165-
166-
* [BUGFIX] Publish images with with the correct tag
162+
* [BUGFIX] Publish images with with the correct tag
167163

168164
## v2.4.1 / 2022-02-10
169-
170165
* [FEATURE] Add `ingressclass` label to `kube_ingress_info` metric #1652 @adammw
171166
* [FEATURE] Extend KSM library to support custom resource metrics #1644 @Garrybest
172167
* [ENHANCEMENT] Use apiVersion `v1` for `PodDisruptionBudget` and `CronJob` resources #1491 @bison
@@ -191,10 +186,9 @@ See: #1847
191186

192187
## v2.2.3 / 2021-10-13
193188

194-
* [BUGFIX] Fix the image build job. Reverts #1602
189+
* [BUGFIX] Fix the image build job. Reverts #1602
195190

196191
## v2.2.2 / 2021-10-13
197-
198192
* [BUGFIX] Downgrade latest allowed go version to 1.16.9 #1601 @mrueg
199193
* [BUGFIX] Fix CI variable names used for building KSM images @mrueg
200194

@@ -268,7 +262,6 @@ Location on quay.io will not be updated anymore. Previously pushed images will b
268262
* [BUGFIX] Propagate resource version when sharded #1402
269263

270264
## v2.0.0-beta / 2020-12-04
271-
272265
Promotion to beta release after a period of no bugs.
273266

274267
## v2.0.0-alpha.3 / 2020-11-19
@@ -291,68 +284,69 @@ kube_pod_container_resource_requests and kube_pod_container_resource_limits
291284

292285
* [CHANGE] Update go module path to k8s.io/kube-state-metrics/v2 #1238
293286
* [CHANGE] Bump klog to v2 and client-go to 1.19 #1250
294-
* [FEATURE] Add iscsi initiator name to persistentvolume_info #1235
295-
* [BUGFIX] Added Namespace to Rolebinding Jsonnet #1233
296-
* [BUGFIX] Reference closure scoped family generator #1240
287+
* [FEATURE] Add iscsi initiator name to persistentvolume_info #1235
288+
* [BUGFIX] Added Namespace to Rolebinding Jsonnet #1233
289+
* [BUGFIX] Reference closure scoped family generator #1240
297290

298291
## v2.0.0-alpha / 2020-09-16
299292

300293
NOTE: This is a major new alpha 2.0 release with breaking changes and removed metrics. See details below!
301294

302-
* [CHANGE] Apply boundaries to metrics and allow via flag (--labels-allow-list) what labels to include #1125
295+
* [CHANGE] Apply boundaries to metrics and allow via flag (--labels-allow-list) what labels to include #1125
303296
* [CHANGE] Update DaemonSet updated_number_scheduled metric name to be consistent #1181
304-
Metric was changed from kube_daemonset_updated_number_scheduled to kube_daemonset_status_updated_number_scheduled
297+
Metric was changed from kube_daemonset_updated_number_scheduled to kube_daemonset_status_updated_number_scheduled
305298
* [CHANGE] Rework resource metrics #1168
306299
Metrics kube_pod_container_resource_requests, kube_pod_container_resource_limits, kube_pod_overhead, kube_pod_init_container_resource_limits, kube_pod_init_container_resource_requests changed
307-
* [CHANGE] Convert k8s labels to snake case #1165
308-
* [CHANGE] Mutatingwebhookconfiguration.go: Switch to v1 #1144
300+
* [CHANGE] Convert k8s labels to snake case #1165
301+
* [CHANGE] Mutatingwebhookconfiguration.go: Switch to v1 #1144
309302
* [CHANGE] v2: Rename storage class labels reclaimPolicy to reclaim_policy and volumeBindingMode to volume_binding_mode #1107
310303
* [CHANGE] v2: Renamed --namespace flag to --namespaces #1098
311304
* [CHANGE] Rename kube_pod_deleted to kube_pod_deletion_timestamp #1079
312305
* [CHANGE] v2: Rename collector flag to resource flag #1006
313306
--resources is the new flag
314-
* [CHANGE] Remove non-identifying labels from pod metrics #1009
307+
* [CHANGE] Remove non-identifying labels from pod metrics #1009
315308
* [CHANGE] v2: Remove deprecated stable metrics #1004
316309
Note that some of these were replaced with EXPERIMENTAL resource metrics. See #1168 for more details.
317310
`kube_pod_container_resource_requests` and `kube_pod_container_resource_limits` are the replacements with `resource` labels
318311
representing the resource name and `unit` labels representing the resource unit.
319-
* kube_pod_container_resource_requests_cpu_cores
320-
* kube_pod_container_resource_limits_cpu_cores
321-
* kube_pod_container_resource_requests_memory_bytes
322-
* kube_pod_container_resource_limits_memory_bytes
323-
* `kube_node_status_capacity` and `kube_node_status_allocatable` are the replacements with `resource` labels
312+
- kube_pod_container_resource_requests_cpu_cores
313+
- kube_pod_container_resource_limits_cpu_cores
314+
- kube_pod_container_resource_requests_memory_bytes
315+
- kube_pod_container_resource_limits_memory_bytes
316+
- `kube_node_status_capacity` and `kube_node_status_allocatable` are the replacements with `resource` labels
324317
representing the resource name and `unit` labels representing the resource unit.
325-
* kube_node_status_capacity_pods
326-
* kube_node_status_capacity_cpu_cores
327-
* kube_node_status_capacity_memory_bytes
328-
* kube_node_status_allocatable_pods
329-
* kube_node_status_allocatable_cpu_cores
330-
* kube_node_status_allocatable_memory_bytes
318+
- kube_node_status_capacity_pods
319+
- kube_node_status_capacity_cpu_cores
320+
- kube_node_status_capacity_memory_bytes
321+
- kube_node_status_allocatable_pods
322+
- kube_node_status_allocatable_cpu_cores
323+
- kube_node_status_allocatable_memory_bytes
331324
* [CHANGE] Rename black-/whitelist to allow/deny-list #1045
332325
New flags are --metric-allowlist and --metric-denylist
333-
* [CHANGE] Update telemetry port to 8081 #1049
334-
* [CHANGE] v2: Rename hpa metrics to use full horizontalpodautoscaler #1003
326+
* [CHANGE] Update telemetry port to 8081 #1049
327+
* [CHANGE] v2: Rename hpa metrics to use full horizontalpodautoscaler #1003
335328
All metrics with prefix of kube_hpa_ were renamed to kube_horizontalpodautoscaler_
336-
* [CHANGE] v2: change metrics port to 8080, telemetry port to 8081 #1005
329+
* [CHANGE] v2: change metrics port to 8080, telemetry port to 8081 #1005
337330
* [FEATURE] Add http request metric for kube-state-metrics main /metrics #1218
338-
* [FEATURE] Add fc/iscsi/nfs identifier tags to persistentvolume_info metric #1208
339-
* [FEATURE] Adds new pod metric kube_pod_container_state_started #1183
331+
* [FEATURE] Add fc/iscsi/nfs identifier tags to persistentvolume_info metric #1208
332+
* [FEATURE] Adds new pod metric kube_pod_container_state_started #1183
340333
* [FEATURE] Add observedGeneration metric (kube_daemonset_status_observed_generation) for DaemonSets #1178
341-
* [FEATURE] Add internal_ip to node_info #1172
342-
* [FEATURE] Avoid conflicts when mapping Kubernetes labels to Prometheus labels #1156
334+
* [FEATURE] Add internal_ip to node_info #1172
335+
* [FEATURE] Avoid conflicts when mapping Kubernetes labels to Prometheus labels #1156
343336
* [FEATURE] Add aws/gce volume id to kube_persistentvolume_info #1146
344337
* [FEATURE] Add UnexpectedAdmissionError to kube_pod_status_reason metric #1145
345338
* [FEATURE] Add init container requests (kube_pod_init_container_resource_requests) #1123
346-
* [FEATURE] Add host_network to kube_pod_info #1100
347-
* [FEATURE] Add kube_replicationcontroller_owner #1058
348-
* [FEATURE] Pod: add gauges for pod overhead (kube_pod_overhead) #1053
349-
* [FEATURE] Add "Terminating" status in kube_pod_status_phase metrics #1013
350-
* [FEATURE] Add lease collector metrics #1038
339+
* [FEATURE] Add host_network to kube_pod_info #1100
340+
* [FEATURE] Add kube_replicationcontroller_owner #1058
341+
* [FEATURE] Pod: add gauges for pod overhead (kube_pod_overhead) #1053
342+
* [FEATURE] Add "Terminating" status in kube_pod_status_phase metrics #1013
343+
* [FEATURE] Add lease collector metrics #1038
351344
* [ENHANCEMENT] Add DeprecatedVersion to struct FamilyGenerator and func NewFamilyGenerator #1160
352-
* [ENHANCEMENT] Add security context to deployment and statefulset #1034
345+
* [ENHANCEMENT] Add security context to deployment and statefulset #1034
353346
* [BUGFIX] Fix VolumeAttachment API version mismatch: expected v1 but watching v1beta1 #1136
354-
* [BUGFIX] Fix various CI issues (kube_volumeattachment_info nodeName -> node label rename) #1117
355-
* [BUGFIX] Fix maxUnavailable to round down instead up #1076
347+
* [BUGFIX] Fix various CI issues (kube_volumeattachment_info nodeName -> node label rename) #1117
348+
* [BUGFIX] Fix maxUnavailable to round down instead up #1076
349+
356350

357351
## v1.9.7 / 2020-05-24
358352

0 commit comments

Comments
 (0)