controller: Wait for postgres to come up
controller: Wait for postgres to come up

This solves a race condition where bootstrap starts the controller
before postgres is fully available in service discovery.

Signed-off-by: Jonathan Rudenberg <3692bfa45759a67d83aedf0045f6cb635a966abf@titanous.com>

flynn/flynn,supermario/flynn,clifff/flynn,felixrieseberg/flynn,josephglanville/flynn,josephglanville/flynn,schatt/flynn,TribeMedia/flynn,whouses/flynn,schatt/flynn,flynn/flynn,pkdevbox/flynn,schatt/flynn,TribeMedia/flynn,kgrz/flynn,philiplb/flynn,arekkas/flynn,schatt/flynn,mubassirhayat/flynn,jzila/flynn,felixrieseberg/flynn,clifff/flynn,ozum/flynn,felixrieseberg/flynn,GrimDerp/flynn,justintung/flynn,jzila/flynn,flynn/flynn,philiplb/flynn,whouses/flynn,tonicbupt/flynn,TribeMedia/flynn,Brandywine2161/flynn,TribeMedia/flynn,TribeMedia/flynn,jzila/flynn,lmars/flynn,clifff/flynn,justintung/flynn,GrimDerp/flynn,lmars/flynn,GrimDerp/flynn,flynn/flynn,justintung/flynn,supermario/flynn,philiplb/flynn,GrimDerp/flynn,tonicbupt/flynn,shads196770/flynn,lmars/flynn,jzila/flynn,josephglanville/flynn,kgrz/flynn,pkdevbox/flynn,schatt/flynn,shads196770/flynn,justintung/flynn,TribeMedia/flynn,clifff/flynn,ozum/flynn,tonicbupt/flynn,arekkas/flynn,whouses/flynn,supermario/flynn,arekkas/flynn,benbjohnson/flynn,technosophos/flynn,supermario/flynn,felixrieseberg/flynn,flynn/flynn,shads196770/flynn,shads196770/flynn,technosophos/flynn,josephglanville/flynn,whouses/flynn,rikur/flynn,rikur/flynn,josephglanville/flynn,tonicbupt/flynn,pkdevbox/flynn,whouses/flynn,kgrz/flynn,tonicbupt/flynn,arekkas/flynn,mubassirhayat/flynn,rikur/flynn,whouses/flynn,justintung/flynn,ozum/flynn,supermario/flynn,lmars/flynn,ozum/flynn,kgrz/flynn,Brandywine2161/flynn,benbjohnson/flynn,technosophos/flynn,shads196770/flynn,arekkas/flynn,ozum/flynn,technosophos/flynn,mubassirhayat/flynn,pkdevbox/flynn,schatt/flynn,kgrz/flynn,mubassirhayat/flynn,GrimDerp/flynn,Brandywine2161/flynn,rikur/flynn,lmars/flynn,ozum/flynn,GrimDerp/flynn,clifff/flynn,rikur/flynn,rikur/flynn,clifff/flynn,Brandywine2161/flynn,josephglanville/flynn,pkdevbox/flynn,philiplb/flynn,benbjohnson/flynn,justintung/flynn,jzila/flynn,jzila/flynn,Brandywine2161/flynn,philiplb/flynn,benbjohnson/flynn,supermario/flynn,pkdevbox/flynn,felixrieseberg/flynn,Brandywine2161/flynn,shads196770/flynn,technosophos/flynn,benbjohnson/flynn,benbjohnson/flynn,kgrz/flynn