From 7321ded7d5eb8be8cbc7bc24556d51c0b55bd7e8 Mon Sep 17 00:00:00 2001 From: Wil Reichert Date: Sat, 8 Apr 2017 06:09:16 +0900 Subject: [PATCH] case replicas to int for comparison, thanks @larryrensing --- rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl b/rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl index ab0e32ab11..c5134aff84 100644 --- a/rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl +++ b/rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl @@ -33,7 +33,7 @@ main() { return 1 fi - {{ if gt ".Values.replicas" "1" -}} + {{ if gt (.Values.replicas | int) 1 -}} if ! is-node-properly-clustered; then log-it "Node is inconsistent with the rest of the cluster" return 1