Skip to content

Commit d7d2d89

Browse files
authored
Update docs/metrics/extend/customresourcestate-metrics.md
1 parent 70088ed commit d7d2d89

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/metrics/extend/customresourcestate-metrics.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,7 @@ Supported types are:
337337
* `nil` is generally mapped to `0.0` if NilIsZero is `true`, otherwise it will throw an error
338338
* for bool `true` is mapped to `1.0` and `false` is mapped to `0.0`
339339
* for string the following logic applies
340-
* `"true"` and `"yes"` are mapped to `1.0`, `"false"` and `"no"` are mapped to `0.0` (all case-insensitive)
341-
* `"unknown"` is mapped to `-1.0` (all case-insensitive)
340+
* `"true"` and `"yes"` are mapped to `1.0`, `"false"`, `"no"` and `"unknown"` are mapped to `0.0` (all case-insensitive)
342341
* RFC3339 times are parsed to float timestamp
343342
* Quantities like "250m" or "512Gi" are parsed to float using <https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go>
344343
* Percentages ending with a "%" are parsed to float

0 commit comments

Comments
 (0)