DandyDeveloper / charts

Various helm charts migrated from [helm/stable] due to deprecation
https://dandydeveloper.github.io/charts
Apache License 2.0
156 stars 143 forks source link

[dandydev/redis-ha] Add TERM signal trap to Redis-ha fix-split-brain.sh to prevent infinite loop and gracefully exit #271

Closed seyyedmojtabarezvani closed 5 months ago

seyyedmojtabarezvani commented 6 months ago

What this PR does / why we need it:

When

The command fix-split-brain.sh container will not gracefully exit and goes into an infinite loop and will not be stopped until terminationGracePeriodSeconds timeouts. In this commit a TERM signal trap is added to prevent such a infinite loop and gracefully exit fix-split-brain.sh

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]