Skip to content

Commit

Permalink
Merge pull request att-comdev#271 from wilreichert/clustercheck
Browse files Browse the repository at this point in the history
bug: single rabbitmq instances don't need cluster readiness checks
  • Loading branch information
v1k0d3n authored Apr 7, 2017
2 parents 1ac3ca1 + 7321ded commit 04a215e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rabbitmq/templates/bin/_rabbitmq-readiness.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ main() {
log-it "Node is unhealthy"
return 1
fi

{{ 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
fi
{{- end }}
return 0
}

Expand Down

0 comments on commit 04a215e

Please sign in to comment.