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