Skip to content

Commit

Permalink
Add sleep before port forward
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Aug 12, 2024
1 parent 791d3e4 commit b404821
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/test/kubernetes-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ helm install postgres bitnami/postgresql # -f scripts/test/values.yaml
POSTGRES_PASSWORD=$(kubectl get secret --namespace default postgres-postgresql -o jsonpath="{.data.postgres-password}" | base64 -d)
export POSTGRES_PASSWORD

kubectl create secret generic postgres-secrets --from-literal=host=postgres-postgresql.default.svc.cluster.local --from-literal=password=$POSTGRES_PASSWORD

sleep 120
# Expose the Postgres to the host running Docker/Kind
#kubectl port-forward --namespace default postgres-postgresql-0 5432:5432 &
kubectl port-forward --namespace default svc/postgres-postgresql 5432:5432 &
kubectl create secret generic postgres-secrets --from-literal=host=postgres-postgresql.default.svc.cluster.local --from-literal=password=$POSTGRES_PASSWORD

#wait_for_nodes_ready
#
## Wait for the kind cluster to be in 'Ready' state
#wait_for_nodes_ready
sleep 120

# For Debugging
echo "nodes"
Expand Down

0 comments on commit b404821

Please sign in to comment.