case replicas to int for comparison, thanks @larryrensing

This commit is contained in:
Wil Reichert 2017-04-08 06:09:16 +09:00
parent 844173049c
commit 7321ded7d5

View File

@ -33,7 +33,7 @@ main() {
return 1 return 1
fi fi
{{ if gt ".Values.replicas" "1" -}} {{ if gt (.Values.replicas | int) 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