From 844173049ca00cce616f18424415c83afda61b22 Mon Sep 17 00:00:00 2001 From: Wil Reichert Date: Tue, 14 Mar 2017 20:58:12 +0900 Subject: [PATCH] Don't execute the rabbit cluster readiness check if is there is only 1 replica --- rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl b/rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl index e1b9042300..ab0e32ab11 100644 --- a/rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl +++ b/rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl @@ -32,10 +32,13 @@ main() { log-it "Node is unhealthy" return 1 fi + + {{ if gt ".Values.replicas" "1" -}} if ! is-node-properly-clustered; then log-it "Node is inconsistent with the rest of the cluster" return 1 fi + {{- end }} return 0 }