Open regnaio opened 4 months ago
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/assign
https://github.com/kubernetes/api/blob/master/core/v1/types.go#L2309
When you
json.Marshal()
aResourceFieldSelector
with undefinedDivisor
, you getdivisor: "0"
This is bad for 2 reasons:
omitempty
is meaningless hereDivisor
should default to1
. Since it actually defaults to0
, you get unintended behavior and incorrect resultsDivisor
instead should be a pointer*resource.Quantity
instead of justresource.Quantity