forked from hashicorp/consul
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide a valid maxUnavailable value when using a single replica
This adds a condition to set `maxUnavailable` to 0 when replicas=1. Previously, the logic returned an invalid value of `-1`. The larger issue of not being able to set something explicitly to 0 remains, as this is a limitation of the way helm templating works. For more information, see: Helm documentation that a numerical 0 is treated identically to null: https://docs.helm.sh/chart_template_guide/#if-else Github issue for this: helm/helm#3164
- Loading branch information
Showing
2 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters