Skip to content

Commit 24e2665

Browse files
authored
Improve formating
1 parent c0bd852 commit 24e2665

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/customresourcestate-metrics.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ Kube-state-metrics performs implicity type conversions for a lot of type.
249249
Supported types are:
250250

251251
* (u)int32/64, int, float32 and byte are cast to float64
252-
* nil is generally mapped to 0.0 if NilIsZero is true. Otherwise it yields an error
253-
* for bool true is mapped to 1.0 and false is mapped to 0.0
252+
* `nil` is generally mapped to `0.0` if NilIsZero is `true`. Otherwise it yields an error
253+
* for bool `true` is mapped to `1.0` and `false` is mapped to `0.0`
254254
* for string the following logic applies
255-
* "true" and "yes" are mapped to 1.0 and "false" and "no" are mapped to 0.0 (all case insensitive)
255+
* `"true"` and `"yes"` are mapped to `1.0` and `"false"` and `"no"` are mapped to `0.0` (all case insensitive)
256256
* RFC3339 times are parsed to float timestamp
257257
* finally the string is parsed to float using https://pkg.go.dev/strconv#ParseFloat which should support all common number formats. If that fails an error is yielded
258258

@@ -287,7 +287,7 @@ spec:
287287

288288
This will work for kubernetes controller CRs which expose status conditions according to the kubernetes api (https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Condition):
289289

290-
```
290+
```yaml
291291
status:
292292
conditions:
293293
- lastTransitionTime: "2019-10-22T16:29:31Z"

0 commit comments

Comments
 (0)