Issue with k8s.io/docs/tasks/run-application/configure-pdb/ (percentage documentation) #14682
Labels
kind/bug
Categorizes issue or PR as related to a bug.
language/en
Issues or PRs related to English language
This is a Bug Report
Problem:
The docs regarding pdb rounding (as introduced in #14408) specify:
However, minUnavailable needs to be either an int32 or a string-percentage (as
"50%"
), as per:https://github.com/kubernetes/kubernetes/blob/f1883c9/pkg/controller/disruption/disruption.go#L586
and
https://github.com/kubernetes/apimachinery/blob/master/pkg/util/intstr/intstr.go#L153
and finally
https://github.com/kubernetes/apimachinery/blob/master/pkg/util/intstr/intstr.go#L175
Trying to deploy a PodDisruptionBudget with "minAvailable: 0.5" yields the following error:
Error from server: json: cannot unmarshal number 0.5 into Go value of type int32
Proposed Solution:
Update the docs to reflect how to specify
maxUnavailable
andminAvailable
as a percentage.Page to Update:
Issue with k8s.io/docs/tasks/run-application/configure-pdb/
If the confusion is legitimate (sorry if it's just my misreading!), then I'm happy to contribute a PR.
The text was updated successfully, but these errors were encountered: