Hello,
I'm trying to install argocd helm chart and it has a dependency on redis-ha.
Observed that sometimes, the redis pods keep crashing and go into crash loop back off state; and on checking logs for errors I noticed the following error appearing repeatedly in the split-brain-fix container logs
+ [ 10.104.191.33 == 10.104.191.33 ] │
/readonly-config/fix-split-brain.sh: 276: [: 10.104.191.33: unexpected operator
Note: I edited the container command/args to run the script in debug mode by adding -x
Though I am not sure if the redis container crash loop is related to this error, while debugging I found that this error is caused because the script is invoked using "sh" which does not support comparison using "==" operator
Comparison using "==" is being done in fix-split-brain.sh:276
I think this issue is causing the flow-of-control to always go into the else block
Reference: https://www.shellcheck.net/wiki/SC3014