Skip to content

Commit 95b29ac

Browse files
authored
Merge pull request #2714 from Rishab87/fix-md-format
fix: Fixed the format of Markdown files
2 parents 3a0eec4 + f8f39bc commit 95b29ac

File tree

14 files changed

+68
-61
lines changed

14 files changed

+68
-61
lines changed

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ assignees: ''
99

1010
<!-- Please only use this template for submitting feature requests -->
1111

12-
**What would you like to be added**:
12+
**What would you like to be added:**
1313

14-
**Why is this needed**:
14+
**Why is this needed:**
1515

16-
**Describe the solution you'd like**
16+
**Describe the solution you'd like:**
1717

18-
**Additional context**
18+
**Additional context:**

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
4. If the PR is unfinished, see how to mark it: https://git.k8s.io/community/contributors/guide/pull-requests.md#marking-unfinished-pull-requests
66
-->
77

8-
**What this PR does / why we need it**:
8+
<!-- markdownlint-disable-next-line MD041 -->
9+
**What this PR does / why we need it:**
910

10-
**How does this change affect the cardinality of KSM**: *(increases, decreases or does not change cardinality)*
11+
**How does this change affect the cardinality of KSM:** *(increases, decreases or does not change cardinality)*
1112

12-
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
13+
**Which issue(s) this PR fixes:** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*
1314
Fixes #

.markdownlint-cli2.jsonc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
"style": "asterisk"
99
},
1010
"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
11+
"MD033": {
12+
"allowed_elements": [
13+
"details",
14+
"summary",
15+
"br"
16+
]
17+
}
1618
}
1719
}

.openvex/templates/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To add new statements to publish data about a vulnerability,
99
download [vexctl](https://github.com/openvex/vexctl)
1010
and append new statements using `vexctl add`. For example:
1111

12-
```
12+
```bash
1313
vexctl add --in-place main.openvex.json pkg:oci/test CVE-2014-1234567 fixed
1414
```
1515

CHANGELOG.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
# Changelog
2+
13
## v2.16.0 / 2025-06-23
24

3-
## Note
5+
**Note:**
46

57
* This release builds with Golang `v1.24.4`
68
* This release builds with `k8s.io/client-go`: `v0.32.6`
@@ -15,7 +17,7 @@
1517

1618
## v2.15.0 / 2025-02-03
1719

18-
## Note
20+
**Note:**
1921

2022
* This release builds with Golang `v1.23.5`
2123
* This release builds with `k8s.io/client-go`: `v0.32.1`
@@ -31,7 +33,7 @@
3133

3234
## v2.14.0 / 2024-11-08
3335

34-
### Note
36+
**Note:**
3537

3638
* This release builds with Golang `v1.23.3`
3739
* This release builds with `k8s.io/client-go`: `v0.31.2`
@@ -54,7 +56,7 @@
5456

5557
## v2.13.0 / 2024-07-18
5658

57-
### Note
59+
**Note:**
5860

5961
* This release builds with Golang `v1.22.5`.
6062
* This release builds with `k8s.io/client-go`: `v0.30.3`.
@@ -69,7 +71,7 @@
6971

7072
## v2.12.0 / 2024-04-02
7173

72-
### Note
74+
**Note:**
7375

7476
* This release addresses a critical issue where scraping the exposition data for certain types caused metrics-backends to crash: <https://github.com/kubernetes/kube-state-metrics/issues/2248>.
7577
* This release builds with `k8s.io/client-go`: `v0.29.3`.
@@ -80,7 +82,7 @@
8082

8183
## v2.11.0 / 2024-03-04
8284

83-
### Note
85+
**Note:**
8486

8587
This release builds with Golang `v1.21.8`.
8688

@@ -97,7 +99,7 @@ This release builds with Golang `v1.21.8`.
9799

98100
## v2.10.1 / 2023-10-09
99101

100-
### Note
102+
**Note:**
101103

102104
* This release addresses a regression introduced in [#2105](https://github.com/kubernetes/kube-state-metrics/pull/2105).
103105

@@ -106,7 +108,7 @@ This release builds with Golang `v1.21.8`.
106108

107109
## v2.10.0 / 2023-08-31
108110

109-
### Note
111+
**Note:**
110112

111113
* 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.
112114

@@ -139,7 +141,7 @@ This release does not incorporate any user-facing changes. Re-running release pr
139141

140142
The changes mentioned below are only the user-facing ones. For a list of the complete set of changes, refer the changelog associated with the release tag.
141143

142-
### Note
144+
**Note:**
143145

144146
* 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.
145147
* #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.

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@ at the logs of kube-state-metrics.
143143

144144
Example of the above mentioned metrics:
145145

146-
```
146+
```prometheus
147147
kube_state_metrics_list_total{resource="*v1.Node",result="success"} 1
148148
kube_state_metrics_list_total{resource="*v1.Node",result="error"} 52
149149
kube_state_metrics_watch_total{resource="*v1beta1.Ingress",result="success"} 1
150150
```
151151

152152
kube-state-metrics also exposes some http request metrics, examples of those are:
153153

154-
```
154+
```prometheus
155155
http_request_duration_seconds_bucket{handler="metrics",method="get",le="2.5"} 30
156156
http_request_duration_seconds_bucket{handler="metrics",method="get",le="5"} 30
157157
http_request_duration_seconds_bucket{handler="metrics",method="get",le="10"} 30
@@ -162,7 +162,7 @@ http_request_duration_seconds_count{handler="metrics",method="get"} 30
162162

163163
kube-state-metrics also exposes build and configuration metrics:
164164

165-
```
165+
```prometheus
166166
kube_state_metrics_build_info{branch="main",goversion="go1.15.3",revision="6c9d775d",version="v2.0.0-beta"} 1
167167
kube_state_metrics_shard_ordinal{shard_ordinal="0"} 0
168168
kube_state_metrics_total_shards 1
@@ -175,7 +175,7 @@ run-time configuration, see [`/examples/prometheus-alerting-rules`](./examples/p
175175

176176
kube-state-metrics also exposes metrics about it config file and the Custom Resource State config file:
177177

178-
```
178+
```prometheus
179179
kube_state_metrics_config_hash{filename="crs.yml",type="customresourceconfig"} 2.38272279311849e+14
180180
kube_state_metrics_config_hash{filename="config.yml",type="config"} 2.65285922340846e+14
181181
kube_state_metrics_last_config_reload_success_timestamp_seconds{filename="crs.yml",type="customresourceconfig"} 1.6704882592037103e+09
@@ -202,7 +202,7 @@ Note that if CPU limits are set too low, kube-state-metrics' internal queues wil
202202

203203
In a 100 node cluster scaling test the latency numbers were as follows:
204204

205-
```
205+
```text
206206
"Perc50": 259615384 ns,
207207
"Perc90": 475000000 ns,
208208
"Perc99": 906666666 ns.
@@ -266,7 +266,7 @@ Each kube-state-metrics pod uses FieldSelector (spec.nodeName) to watch/list pod
266266

267267
A daemonset kube-state-metrics example:
268268

269-
```
269+
```yaml
270270
apiVersion: apps/v1
271271
kind: DaemonSet
272272
spec:
@@ -288,7 +288,7 @@ spec:
288288
289289
To track metrics for unassigned pods, you need to add an additional deployment and set `--track-unscheduled-pods`, as shown in the following example:
290290

291-
```
291+
```yaml
292292
apiVersion: apps/v1
293293
kind: Deployment
294294
spec:
@@ -308,16 +308,16 @@ Other metrics can be sharded via [Horizontal sharding](#horizontal-sharding).
308308

309309
Install this project to your `$GOPATH` using `go get`:
310310

311-
```
312-
go get k8s.io/kube-state-metrics
311+
```bash
312+
go get k8s.io/kube-state-metrics/v2
313313
```
314314

315315
#### Building the Docker container
316316

317317
Simply run the following command in this root folder, which will create a
318318
self-contained, statically-linked binary and build a Docker image:
319319

320-
```
320+
```bash
321321
make container
322322
```
323323

@@ -340,7 +340,7 @@ To have Prometheus discover kube-state-metrics instances it is advised to create
340340

341341
**Note:** Google Kubernetes Engine (GKE) Users - GKE has strict role permissions that will prevent the kube-state-metrics roles and role bindings from being created. To work around this, you can give your GCP identity the cluster-admin role by running the following one-liner:
342342

343-
```
343+
```bash
344344
kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=$(gcloud info --format='value(config.account)')
345345
```
346346

@@ -415,14 +415,14 @@ When developing, test a metric dump against your local Kubernetes cluster by run
415415

416416
> Users can override the apiserver address in KUBE-CONFIG file with `--apiserver` command line.
417417

418-
```
418+
```bash
419419
go install
420420
kube-state-metrics --port=8080 --telemetry-port=8081 --kubeconfig=<KUBE-CONFIG> --apiserver=<APISERVER>
421421
```
422422

423423
Then curl the metrics endpoint
424424

425-
```
425+
```bash
426426
curl localhost:8080/metrics
427427
```
428428

README.md.tpl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ at the logs of kube-state-metrics.
144144

145145
Example of the above mentioned metrics:
146146

147-
```
147+
```prometheus
148148
kube_state_metrics_list_total{resource="*v1.Node",result="success"} 1
149149
kube_state_metrics_list_total{resource="*v1.Node",result="error"} 52
150150
kube_state_metrics_watch_total{resource="*v1beta1.Ingress",result="success"} 1
151151
```
152152

153153
kube-state-metrics also exposes some http request metrics, examples of those are:
154154

155-
```
155+
```prometheus
156156
http_request_duration_seconds_bucket{handler="metrics",method="get",le="2.5"} 30
157157
http_request_duration_seconds_bucket{handler="metrics",method="get",le="5"} 30
158158
http_request_duration_seconds_bucket{handler="metrics",method="get",le="10"} 30
@@ -163,7 +163,7 @@ http_request_duration_seconds_count{handler="metrics",method="get"} 30
163163

164164
kube-state-metrics also exposes build and configuration metrics:
165165

166-
```
166+
```prometheus
167167
kube_state_metrics_build_info{branch="main",goversion="go1.15.3",revision="6c9d775d",version="v2.0.0-beta"} 1
168168
kube_state_metrics_shard_ordinal{shard_ordinal="0"} 0
169169
kube_state_metrics_total_shards 1
@@ -176,7 +176,7 @@ run-time configuration, see [`/examples/prometheus-alerting-rules`](./examples/p
176176

177177
kube-state-metrics also exposes metrics about it config file and the Custom Resource State config file:
178178

179-
```
179+
```prometheus
180180
kube_state_metrics_config_hash{filename="crs.yml",type="customresourceconfig"} 2.38272279311849e+14
181181
kube_state_metrics_config_hash{filename="config.yml",type="config"} 2.65285922340846e+14
182182
kube_state_metrics_last_config_reload_success_timestamp_seconds{filename="crs.yml",type="customresourceconfig"} 1.6704882592037103e+09
@@ -203,7 +203,7 @@ Note that if CPU limits are set too low, kube-state-metrics' internal queues wil
203203

204204
In a 100 node cluster scaling test the latency numbers were as follows:
205205

206-
```
206+
```text
207207
"Perc50": 259615384 ns,
208208
"Perc90": 475000000 ns,
209209
"Perc99": 906666666 ns.
@@ -267,7 +267,7 @@ Each kube-state-metrics pod uses FieldSelector (spec.nodeName) to watch/list pod
267267

268268
A daemonset kube-state-metrics example:
269269

270-
```
270+
```yaml
271271
apiVersion: apps/v1
272272
kind: DaemonSet
273273
spec:
@@ -289,7 +289,7 @@ spec:
289289

290290
To track metrics for unassigned pods, you need to add an additional deployment and set `--track-unscheduled-pods`, as shown in the following example:
291291

292-
```
292+
```yaml
293293
apiVersion: apps/v1
294294
kind: Deployment
295295
spec:
@@ -309,16 +309,16 @@ Other metrics can be sharded via [Horizontal sharding](#horizontal-sharding).
309309

310310
Install this project to your `$GOPATH` using `go get`:
311311

312-
```
313-
go get k8s.io/kube-state-metrics
312+
```bash
313+
go get k8s.io/kube-state-metrics/v2
314314
```
315315

316316
#### Building the Docker container
317317

318318
Simply run the following command in this root folder, which will create a
319319
self-contained, statically-linked binary and build a Docker image:
320320

321-
```
321+
```bash
322322
make container
323323
```
324324

@@ -341,7 +341,7 @@ To have Prometheus discover kube-state-metrics instances it is advised to create
341341

342342
**Note:** Google Kubernetes Engine (GKE) Users - GKE has strict role permissions that will prevent the kube-state-metrics roles and role bindings from being created. To work around this, you can give your GCP identity the cluster-admin role by running the following one-liner:
343343

344-
```
344+
```bash
345345
kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=$(gcloud info --format='value(config.account)')
346346
```
347347

@@ -416,14 +416,14 @@ When developing, test a metric dump against your local Kubernetes cluster by run
416416

417417
> Users can override the apiserver address in KUBE-CONFIG file with `--apiserver` command line.
418418

419-
```
419+
```bash
420420
go install
421421
kube-state-metrics --port=8080 --telemetry-port=8081 --kubeconfig=<KUBE-CONFIG> --apiserver=<APISERVER>
422422
```
423423

424424
Then curl the metrics endpoint
425425

426-
```
426+
```bash
427427
curl localhost:8080/metrics
428428
```
429429

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Maintaining the release branches for older minor releases happens on a best effo
2424
* Only include user relevant changes
2525
* Entries in the [`CHANGELOG.md`](CHANGELOG.md) are meant to be in this order:
2626

27-
```
27+
```text
2828
[CHANGE]
2929
[FEATURE]
3030
[ENHANCEMENT]

0 commit comments

Comments
 (0)