Skip to content

Commit 48eadb7

Browse files
committed
fix: add db init to k8_test
1 parent 44c70cf commit 48eadb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

k8s/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ kubectl config set-context --current --namespace=$KUBERNETES_NAMESPACE
5353
echo "Context set to namespace: \"$KUBERNETES_NAMESPACE\""
5454
kubectl apply --kustomize infrastructure/test
5555
__safe_migration_rollout test-postgres
56+
kubectl exec -i deployment/test-postgres -- sh -c "psql -U postgres -c '$(cat infrastructure/test/deployment/assets/init.sql)'" || true
5657
echo "::endgroup::"
5758

5859

0 commit comments

Comments
 (0)