Skip to content

Commit 81e825d

Browse files
committed
feat: introduce Markdown formatter
1 parent 84abaf7 commit 81e825d

17 files changed

+220
-190
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

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

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

.markdownlint-cli2.jsonc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"globs": [
3+
"**/*.md"
4+
],
5+
// ToDo: Following rules can't be fixed automatically. They should be enabled when fixed.
6+
"config": {
7+
"MD004": {
8+
"style": "asterisk"
9+
},
10+
"MD013": false, // https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md#md013---line-length
11+
"MD024": false, // https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md#md024---multiple-headers-with-the-same-content
12+
"MD033": false, // https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md#md033---inline-html
13+
"MD036": false, // https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md#md036---emphasis-used-instead-of-a-header
14+
"MD040": false, // https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md#md040---fenced-code-blocks-should-have-a-language-specified
15+
"MD041": false // https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md#md041---first-line-in-file-should-be-a-top-level-header
16+
}
17+
}

CHANGELOG.md

+62-57
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
## v2.10.0 / 2023-08-31
22

33
### Note
4-
- 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.
5-
6-
* [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
7-
* [BUGFIX] Don't crash on non-existent valueFrom path values by @chihshenghuang in https://github.com/kubernetes/kube-state-metrics/pull/2140
8-
* [BUGFIX] Index out of range in metrics_store.SanitizeHeaders by @mrueg in https://github.com/kubernetes/kube-state-metrics/pull/2166
9-
* [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
10-
* [BUGFIX] Add filtering for Lease metrics by @ntoofu in https://github.com/kubernetes/kube-state-metrics/pull/2122
11-
* [FEATURE] Implement kube_pod_status_initialized_time by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2148
12-
* [FEATURE] Disable labels and annotations metrics when metric-annotations-… by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2145
13-
* [FEATURE] Add webhooks client config service metrics by @dgrisonnet in https://github.com/kubernetes/kube-state-metrics/pull/2114
14-
* [FEATURE] Support kube_persistentvolumeclaim_deletion_timestamp by @maxime1907 in https://github.com/kubernetes/kube-state-metrics/pull/2074
15-
* [FEATURE] Support kube_persistentvolume_deletion_timestamp by @maxime1907 in https://github.com/kubernetes/kube-state-metrics/pull/2075
16-
* [FEATURE] Adds new metric `kube_pod_service_account` by @swarup-stripe in https://github.com/kubernetes/kube-state-metrics/pull/2096
17-
* [FEATURE] Add volumemode to PVC info metric by @machadovilaca in https://github.com/kubernetes/kube-state-metrics/pull/2134
18-
* [FEATURE] Enable metric-annotations-allowlist and metric-labels-allowlist for ResourceQuota by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2175
19-
* [FEATURE] Allow field KV general matching by @rexagod in https://github.com/kubernetes/kube-state-metrics/pull/2067
20-
* [FEATURE] Support hot reload for kubeconfig by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2144
21-
* [FEATURE] Add support for endpoint topology routing hints by @MarkSRobinson in https://github.com/kubernetes/kube-state-metrics/pull/2090
4+
5+
* 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.
6+
7+
* [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>
8+
* [BUGFIX] Don't crash on non-existent valueFrom path values by @chihshenghuang in <https://github.com/kubernetes/kube-state-metrics/pull/2140>
9+
* [BUGFIX] Index out of range in metrics_store.SanitizeHeaders by @mrueg in <https://github.com/kubernetes/kube-state-metrics/pull/2166>
10+
* [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>
11+
* [BUGFIX] Add filtering for Lease metrics by @ntoofu in <https://github.com/kubernetes/kube-state-metrics/pull/2122>
12+
* [FEATURE] Implement kube_pod_status_initialized_time by @opeco17 in <https://github.com/kubernetes/kube-state-metrics/pull/2148>
13+
* [FEATURE] Disable labels and annotations metrics when metric-annotations-… by @opeco17 in <https://github.com/kubernetes/kube-state-metrics/pull/2145>
14+
* [FEATURE] Add webhooks client config service metrics by @dgrisonnet in <https://github.com/kubernetes/kube-state-metrics/pull/2114>
15+
* [FEATURE] Support kube_persistentvolumeclaim_deletion_timestamp by @maxime1907 in <https://github.com/kubernetes/kube-state-metrics/pull/2074>
16+
* [FEATURE] Support kube_persistentvolume_deletion_timestamp by @maxime1907 in <https://github.com/kubernetes/kube-state-metrics/pull/2075>
17+
* [FEATURE] Adds new metric `kube_pod_service_account` by @swarup-stripe in <https://github.com/kubernetes/kube-state-metrics/pull/2096>
18+
* [FEATURE] Add volumemode to PVC info metric by @machadovilaca in <https://github.com/kubernetes/kube-state-metrics/pull/2134>
19+
* [FEATURE] Enable metric-annotations-allowlist and metric-labels-allowlist for ResourceQuota by @opeco17 in <https://github.com/kubernetes/kube-state-metrics/pull/2175>
20+
* [FEATURE] Allow field KV general matching by @rexagod in <https://github.com/kubernetes/kube-state-metrics/pull/2067>
21+
* [FEATURE] Support hot reload for kubeconfig by @opeco17 in <https://github.com/kubernetes/kube-state-metrics/pull/2144>
22+
* [FEATURE] Add support for endpoint topology routing hints by @MarkSRobinson in <https://github.com/kubernetes/kube-state-metrics/pull/2090>
2223

2324
## v2.9.2 / 2023-05-30
2425

@@ -34,8 +35,8 @@ The changes mentioned below are only the user-facing ones. For a list of the com
3435

3536
### Note
3637

37-
- 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.
38-
- #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.
38+
* 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.
39+
* #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.
3940

4041
* [BUGFIX] Adhere to OTel-Prometheus standard for labels #2004 @rexagod
4142
* [BUGFIX] Respect relative paths for label resolutions #2007 @rexagod
@@ -118,6 +119,7 @@ See: #1847
118119
* [BUGFIX] Allow lease metrics to be exported across all namespaces #1845 @lantingchiang
119120

120121
## v2.6.0 / 2022-08-26
122+
121123
* [FEATURE] Add local storage labels to kube_persistentvolume_info #1814 @nabokihms
122124
* [FEATURE] Add support for StateSet and Info metrics for Custom-Resource State #1777 @chrischdi
123125
* [FEATURE] Add support for Rolebinding resource metrics #1799 @kaitoii11
@@ -151,9 +153,11 @@ See: #1847
151153
* [BUGFIX] Properly initialize KSM Server test #1699 @fpetkovski
152154

153155
## v2.4.2 / 2022-02-10
154-
* [BUGFIX] Publish images with with the correct tag
156+
157+
* [BUGFIX] Publish images with with the correct tag
155158

156159
## v2.4.1 / 2022-02-10
160+
157161
* [FEATURE] Add `ingressclass` label to `kube_ingress_info` metric #1652 @adammw
158162
* [FEATURE] Extend KSM library to support custom resource metrics #1644 @Garrybest
159163
* [ENHANCEMENT] Use apiVersion `v1` for `PodDisruptionBudget` and `CronJob` resources #1491 @bison
@@ -178,9 +182,10 @@ See: #1847
178182

179183
## v2.2.3 / 2021-10-13
180184

181-
* [BUGFIX] Fix the image build job. Reverts #1602
185+
* [BUGFIX] Fix the image build job. Reverts #1602
182186

183187
## v2.2.2 / 2021-10-13
188+
184189
* [BUGFIX] Downgrade latest allowed go version to 1.16.9 #1601 @mrueg
185190
* [BUGFIX] Fix CI variable names used for building KSM images @mrueg
186191

@@ -254,6 +259,7 @@ Location on quay.io will not be updated anymore. Previously pushed images will b
254259
* [BUGFIX] Propagate resource version when sharded #1402
255260

256261
## v2.0.0-beta / 2020-12-04
262+
257263
Promotion to beta release after a period of no bugs.
258264

259265
## v2.0.0-alpha.3 / 2020-11-19
@@ -276,69 +282,68 @@ kube_pod_container_resource_requests and kube_pod_container_resource_limits
276282

277283
* [CHANGE] Update go module path to k8s.io/kube-state-metrics/v2 #1238
278284
* [CHANGE] Bump klog to v2 and client-go to 1.19 #1250
279-
* [FEATURE] Add iscsi initiator name to persistentvolume_info #1235
280-
* [BUGFIX] Added Namespace to Rolebinding Jsonnet #1233
281-
* [BUGFIX] Reference closure scoped family generator #1240
285+
* [FEATURE] Add iscsi initiator name to persistentvolume_info #1235
286+
* [BUGFIX] Added Namespace to Rolebinding Jsonnet #1233
287+
* [BUGFIX] Reference closure scoped family generator #1240
282288

283289
## v2.0.0-alpha / 2020-09-16
284290

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

287-
* [CHANGE] Apply boundaries to metrics and allow via flag (--labels-allow-list) what labels to include #1125
293+
* [CHANGE] Apply boundaries to metrics and allow via flag (--labels-allow-list) what labels to include #1125
288294
* [CHANGE] Update DaemonSet updated_number_scheduled metric name to be consistent #1181
289-
Metric was changed from kube_daemonset_updated_number_scheduled to kube_daemonset_status_updated_number_scheduled
295+
Metric was changed from kube_daemonset_updated_number_scheduled to kube_daemonset_status_updated_number_scheduled
290296
* [CHANGE] Rework resource metrics #1168
291297
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
292-
* [CHANGE] Convert k8s labels to snake case #1165
293-
* [CHANGE] Mutatingwebhookconfiguration.go: Switch to v1 #1144
298+
* [CHANGE] Convert k8s labels to snake case #1165
299+
* [CHANGE] Mutatingwebhookconfiguration.go: Switch to v1 #1144
294300
* [CHANGE] v2: Rename storage class labels reclaimPolicy to reclaim_policy and volumeBindingMode to volume_binding_mode #1107
295301
* [CHANGE] v2: Renamed --namespace flag to --namespaces #1098
296302
* [CHANGE] Rename kube_pod_deleted to kube_pod_deletion_timestamp #1079
297303
* [CHANGE] v2: Rename collector flag to resource flag #1006
298304
--resources is the new flag
299-
* [CHANGE] Remove non-identifying labels from pod metrics #1009
305+
* [CHANGE] Remove non-identifying labels from pod metrics #1009
300306
* [CHANGE] v2: Remove deprecated stable metrics #1004
301307
Note that some of these were replaced with EXPERIMENTAL resource metrics. See #1168 for more details.
302308
`kube_pod_container_resource_requests` and `kube_pod_container_resource_limits` are the replacements with `resource` labels
303309
representing the resource name and `unit` labels representing the resource unit.
304-
- kube_pod_container_resource_requests_cpu_cores
305-
- kube_pod_container_resource_limits_cpu_cores
306-
- kube_pod_container_resource_requests_memory_bytes
307-
- kube_pod_container_resource_limits_memory_bytes
308-
- `kube_node_status_capacity` and `kube_node_status_allocatable` are the replacements with `resource` labels
310+
* kube_pod_container_resource_requests_cpu_cores
311+
* kube_pod_container_resource_limits_cpu_cores
312+
* kube_pod_container_resource_requests_memory_bytes
313+
* kube_pod_container_resource_limits_memory_bytes
314+
* `kube_node_status_capacity` and `kube_node_status_allocatable` are the replacements with `resource` labels
309315
representing the resource name and `unit` labels representing the resource unit.
310-
- kube_node_status_capacity_pods
311-
- kube_node_status_capacity_cpu_cores
312-
- kube_node_status_capacity_memory_bytes
313-
- kube_node_status_allocatable_pods
314-
- kube_node_status_allocatable_cpu_cores
315-
- kube_node_status_allocatable_memory_bytes
316+
* kube_node_status_capacity_pods
317+
* kube_node_status_capacity_cpu_cores
318+
* kube_node_status_capacity_memory_bytes
319+
* kube_node_status_allocatable_pods
320+
* kube_node_status_allocatable_cpu_cores
321+
* kube_node_status_allocatable_memory_bytes
316322
* [CHANGE] Rename black-/whitelist to allow/deny-list #1045
317323
New flags are --metric-allowlist and --metric-denylist
318-
* [CHANGE] Update telemetry port to 8081 #1049
319-
* [CHANGE] v2: Rename hpa metrics to use full horizontalpodautoscaler #1003
324+
* [CHANGE] Update telemetry port to 8081 #1049
325+
* [CHANGE] v2: Rename hpa metrics to use full horizontalpodautoscaler #1003
320326
All metrics with prefix of kube_hpa_ were renamed to kube_horizontalpodautoscaler_
321-
* [CHANGE] v2: change metrics port to 8080, telemetry port to 8081 #1005
327+
* [CHANGE] v2: change metrics port to 8080, telemetry port to 8081 #1005
322328
* [FEATURE] Add http request metric for kube-state-metrics main /metrics #1218
323-
* [FEATURE] Add fc/iscsi/nfs identifier tags to persistentvolume_info metric #1208
324-
* [FEATURE] Adds new pod metric kube_pod_container_state_started #1183
329+
* [FEATURE] Add fc/iscsi/nfs identifier tags to persistentvolume_info metric #1208
330+
* [FEATURE] Adds new pod metric kube_pod_container_state_started #1183
325331
* [FEATURE] Add observedGeneration metric (kube_daemonset_status_observed_generation) for DaemonSets #1178
326-
* [FEATURE] Add internal_ip to node_info #1172
327-
* [FEATURE] Avoid conflicts when mapping Kubernetes labels to Prometheus labels #1156
332+
* [FEATURE] Add internal_ip to node_info #1172
333+
* [FEATURE] Avoid conflicts when mapping Kubernetes labels to Prometheus labels #1156
328334
* [FEATURE] Add aws/gce volume id to kube_persistentvolume_info #1146
329335
* [FEATURE] Add UnexpectedAdmissionError to kube_pod_status_reason metric #1145
330336
* [FEATURE] Add init container requests (kube_pod_init_container_resource_requests) #1123
331-
* [FEATURE] Add host_network to kube_pod_info #1100
332-
* [FEATURE] Add kube_replicationcontroller_owner #1058
333-
* [FEATURE] Pod: add gauges for pod overhead (kube_pod_overhead) #1053
334-
* [FEATURE] Add "Terminating" status in kube_pod_status_phase metrics #1013
335-
* [FEATURE] Add lease collector metrics #1038
337+
* [FEATURE] Add host_network to kube_pod_info #1100
338+
* [FEATURE] Add kube_replicationcontroller_owner #1058
339+
* [FEATURE] Pod: add gauges for pod overhead (kube_pod_overhead) #1053
340+
* [FEATURE] Add "Terminating" status in kube_pod_status_phase metrics #1013
341+
* [FEATURE] Add lease collector metrics #1038
336342
* [ENHANCEMENT] Add DeprecatedVersion to struct FamilyGenerator and func NewFamilyGenerator #1160
337-
* [ENHANCEMENT] Add security context to deployment and statefulset #1034
343+
* [ENHANCEMENT] Add security context to deployment and statefulset #1034
338344
* [BUGFIX] Fix VolumeAttachment API version mismatch: expected v1 but watching v1beta1 #1136
339-
* [BUGFIX] Fix various CI issues (kube_volumeattachment_info nodeName -> node label rename) #1117
340-
* [BUGFIX] Fix maxUnavailable to round down instead up #1076
341-
345+
* [BUGFIX] Fix various CI issues (kube_volumeattachment_info nodeName -> node label rename) #1117
346+
* [BUGFIX] Fix maxUnavailable to round down instead up #1076
342347

343348
## v1.9.7 / 2020-05-24
344349

CONTRIBUTING.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,17 @@ Here's a list of types that we use:
3838
| chore | Other changes that don't modify src or test files |
3939
| revert | Reverts a previous commit |
4040

41-
4241
### Further Information
4342

44-
- [Contributor License Agreement](https://git.k8s.io/community/CLA.md) Kubernetes projects require that you sign a Contributor License Agreement (CLA) before we can accept your pull requests
45-
- [Kubernetes Contributor Guide](http://git.k8s.io/community/contributors/guide) - Main contributor documentation, or you can just jump directly to the [contributing section](http://git.k8s.io/community/contributors/guide#contributing)
46-
- [Contributor Cheat Sheet](https://git.k8s.io/community/contributors/guide/contributor-cheatsheet/README.md) - Common resources for existing developers
43+
* [Contributor License Agreement](https://git.k8s.io/community/CLA.md) Kubernetes projects require that you sign a Contributor License Agreement (CLA) before we can accept your pull requests
44+
* [Kubernetes Contributor Guide](http://git.k8s.io/community/contributors/guide) - Main contributor documentation, or you can just jump directly to the [contributing section](http://git.k8s.io/community/contributors/guide#contributing)
45+
* [Contributor Cheat Sheet](https://git.k8s.io/community/contributors/guide/contributor-cheatsheet/README.md) - Common resources for existing developers
4746

4847
## Mentorship
4948

50-
- [Mentoring Initiatives](https://git.k8s.io/community/mentoring) - We have a diverse set of mentorship programs available that are always looking for volunteers!
49+
* [Mentoring Initiatives](https://git.k8s.io/community/mentoring) - We have a diverse set of mentorship programs available that are always looking for volunteers!
5150

5251
## Contact Information
5352

54-
- [Join Slack](http://slack.k8s.io) to sign up and join the Kubernetes Slack. Please make sure to read our [Slack Guidelines](https://github.com/kubernetes/community/blob/master/communication/slack-guidelines.md) before participating.
55-
- The [kube-state-metrics slack channel](https://kubernetes.slack.com/messages/CJJ529RUY) provides an effective communication platform to reach out to members and other users of the project. It offers an alternative to submitting a GitHub issue for when you have questions and issues.
53+
* [Join Slack](http://slack.k8s.io) to sign up and join the Kubernetes Slack. Please make sure to read our [Slack Guidelines](https://github.com/kubernetes/community/blob/master/communication/slack-guidelines.md) before participating.
54+
* The [kube-state-metrics slack channel](https://kubernetes.slack.com/messages/CJJ529RUY) provides an effective communication platform to reach out to members and other users of the project. It offers an alternative to submitting a GitHub issue for when you have questions and issues.

0 commit comments

Comments
 (0)