Skip to content

Commit

Permalink
Merge pull request #12 from inovex/dns-wait
Browse files Browse the repository at this point in the history
Wait for DNS deployment explicitly
  • Loading branch information
fischerman authored May 3, 2023
2 parents bfb28e4 + 1a9c2c2 commit a1b5096
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build/assets/consul-template-config.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ exec {
# TODO make splay configurable
splay = "5s"

# Triggers pgbouncer to
# Triggers pgbouncer to reload its config (i.e. new credentials)
reload_signal = "SIGHUP"

# causes a safe shutdown of pgbouncer
Expand All @@ -51,14 +51,14 @@ template {
destination = "/tmp/pgbouncer_rendered.ini"

create_dest_dirs = true
error_on_missing_key = true

# This is the optional command to run when the template is rendered. The
# command will only run if the resulting template changes. The command must
# return within 30s (configurable), and it must have a successful exit code.
# Consul Template is not a replacement for a process monitor or init system.
# command = "restart service foo"

#
perms = 0600

backup = false
Expand Down
5 changes: 1 addition & 4 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ set -ex
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR

if [ "$GITHUB_ACTIONS" == "true" ]; then
echo Waiting 10 seconds to make sure Minikube DNS is ready
sleep 10
fi
kubectl -n kube-system wait --timeout=2m --for=condition=Available deployment/coredns
eval $(minikube -p minikube docker-env)
docker build -t pgbouncer-vault ../build

Expand Down

0 comments on commit a1b5096

Please sign in to comment.