Skip to content

Commit

Permalink
Remove DB initialization from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willmostly authored and nineinchnick committed Feb 15, 2025
1 parent 412385d commit 30d10bd
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions charts/gateway/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,6 @@ metadata:
annotations:
"helm.sh/hook": test
spec:
initContainers:
- name: extract-persistence-sql
image: "trinodb/trino-gateway"
command:
- "/bin/sh"
- "-c"
- |
cd /etc/persistence && \
jar -xvf /usr/lib/trino/gateway-ha-jar-with-dependencies.jar \
gateway-ha-persistence-postgres.sql
volumeMounts:
- name: persistence-sql
mountPath: /etc/persistence
- name: initialize-db
image: bitnami/postgresql:17.1.0
command:
- "/bin/sh"
- "-c"
- |
echo "Initialize gateway schema";
PGPASSWORD=pass0000 psql \
-h gateway-backend-db-postgresql.postgres-gateway.svc.cluster.local \
-U gateway -d gateway \
-f /etc/persistence/gateway-ha-persistence-postgres.sql
volumeMounts:
- name: persistence-sql
mountPath: /etc/persistence
containers:
- name: curl
image: alpine
Expand Down

0 comments on commit 30d10bd

Please sign in to comment.