Repository navigation
[redis-ha] Support nodeTaintsPolicy in topology spread constraints - #427
Open
karen-tu-2 wants to merge 1 commit into
Open
karen-tu-2 wants to merge 1 commit into
karen-tu-2 wants to merge 1 commit into
Conversation
Signed-off-by: Karen Tu <305012119+karen-tu-2@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Expose optional
topologySpreadConstraints.nodeTaintsPolicyin both the Redis/Sentinel StatefulSet and HAProxy Deployment.Setting
Honorlets topology-spread calculations exclude nodes with taints the incoming pod does not tolerate.Ignorecan also be selected explicitly. The default is an empty string, which omits the field and preserves existing Kubernetes behavior. Disabling topology spread constraints still omits the entire constraint.The chart version is bumped to 4.40.0 without changing the application version. The new value is documented in the existing values table.
Special notes for your reviewer:
nodeTaintsPolicyfield to differ. They cover both workloads,HonorandIgnore, hard and soft spreading, empty/null/default omission, and disabled constraints.Validation
python -m unittest discover --start-directory .ci --pattern test_redis_ha_topology.py -v: all five tests pass. The explicit-policy test failed for bothHonorandIgnoreagainst the unmodified templates.helm lint charts/redis-ha --strict: passes.helm lint charts/redis-ha --strict --set haproxy.enabled=true --set topologySpreadConstraints.enabled=true --set topologySpreadConstraints.nodeTaintsPolicy=Honor: passes.git diff --check: passes.Checklist
[redis-ha] Support nodeTaintsPolicy in topology spread constraints