Merge pull request #42183 from sttts/sttts-bool-parse-warning
Automatic merge from submit-queue (batch tested with PRs 42216, 42136, 42183, 42149, 36828)
Fix bool parse warning in apimachinery
```golang
var DefaultConverter = NewConverter(parseBool(os.Getenv("KUBE_PATCH_CONVERSION_DETECTOR")))
func parseBool(key string) bool {
value, err := strconv.ParseBool(key)
if err != nil {
utilruntime.HandleError(fmt.Errorf("Couldn't parse '%s' as bool for unstructured mismatch detection", key))
}
return value
}
````
leading to
```
W0227 10:06:01.037] E0227 10:06:01.023502 16550 converter.go:87] Couldn't parse '' as bool for unstructured mismatch detection
```
Showing
Please
register
or
sign in
to comment