Unexpected behaviour around controller.minAvailable and controller.maxUnavailable parameters #9625
Labels
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
needs-kind
Indicates a PR lacks a `kind/foo` label and requires one.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
As of chart version
4.4.2
new PDB parameter was introduced:controller.maxUnavailable
.Here's the code snipped of how it was implemented:
Because the default
values.yaml
hascontroller.minAvailable
set to1
, the conditional block above doesn't work as expected, unless you explicitly overridecontroller.minAvailable: null
during helm chart deployment. Otherwise it will ignore themaxUnavailable
.The documentation for these two PDB parameters is also not aligned with how it behaves. It says:
The readme is also missing the description for the
maxUnavailable
parameter, the latter is only mentioned in the description of theminAvailable
parameter:https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/README.md?plain=1#L392
The text was updated successfully, but these errors were encountered: