Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

[redis-ha] Support nodeTaintsPolicy in topology spread constraints - #427

Open
karen-tu-2 wants to merge 1 commit into
DandyDeveloper:masterfrom
karen-tu-2:feat/redis-ha-node-taints-policy
Open

karen-tu-2 wants to merge 1 commit into
DandyDeveloper:masterfrom
karen-tu-2:feat/redis-ha-node-taints-policy

Conversation

@karen-tu-2

Copy link
Copy Markdown

What this PR does / why we need it:

Expose optional topologySpreadConstraints.nodeTaintsPolicy in both the Redis/Sentinel StatefulSet and HAProxy Deployment.

Setting Honor lets topology-spread calculations exclude nodes with taints the incoming pod does not tolerate. Ignore can 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:

  • Both workload templates conditionally render the field only when configured.
  • No selectors, replica counts, anti-affinity rules, or existing topology-spread defaults are changed.
  • Render tests compare complete workload manifests, allowing only the requested nodeTaintsPolicy field to differ. They cover both workloads, Honor and Ignore, hard and soft spreading, empty/null/default omission, and disabled constraints.
  • The render tests run in the existing GitHub Actions workflow with Helm and Python/PyYAML; no additional Helm plugin is required.

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 both Honor and Ignore against 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.
  • The existing kind/chart-testing install suite was not run locally.

Checklist

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md
  • Title of the PR starts with chart name: [redis-ha] Support nodeTaintsPolicy in topology spread constraints

Signed-off-by: Karen Tu <305012119+karen-tu-2@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant