Don't execute the rabbit cluster readiness check if is there is only 1 replica

This commit is contained in:
Wil Reichert 2017-03-14 20:58:12 +09:00
parent 9c99087371
commit 844173049c

View File

@ -32,10 +32,13 @@ main() {
log-it "Node is unhealthy" log-it "Node is unhealthy"
return 1 return 1
fi fi
{{ if gt ".Values.replicas" "1" -}}
if ! is-node-properly-clustered; then if ! is-node-properly-clustered; then
log-it "Node is inconsistent with the rest of the cluster" log-it "Node is inconsistent with the rest of the cluster"
return 1 return 1
fi fi
{{- end }}
return 0 return 0
} }