You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/customresourcestate-metrics.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -249,10 +249,10 @@ Kube-state-metrics performs implicity type conversions for a lot of type.
249
249
Supported types are:
250
250
251
251
* (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`
254
254
* 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)
256
256
* RFC3339 times are parsed to float timestamp
257
257
* 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
258
258
@@ -287,7 +287,7 @@ spec:
287
287
288
288
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):
0 commit comments