Skip to content

Commit 30d10bd

Browse files
willmostlynineinchnick
authored andcommitted
Remove DB initialization from tests
1 parent 412385d commit 30d10bd

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

charts/gateway/templates/tests/test-connection.yaml

-27
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,6 @@ metadata:
99
annotations:
1010
"helm.sh/hook": test
1111
spec:
12-
initContainers:
13-
- name: extract-persistence-sql
14-
image: "trinodb/trino-gateway"
15-
command:
16-
- "/bin/sh"
17-
- "-c"
18-
- |
19-
cd /etc/persistence && \
20-
jar -xvf /usr/lib/trino/gateway-ha-jar-with-dependencies.jar \
21-
gateway-ha-persistence-postgres.sql
22-
volumeMounts:
23-
- name: persistence-sql
24-
mountPath: /etc/persistence
25-
- name: initialize-db
26-
image: bitnami/postgresql:17.1.0
27-
command:
28-
- "/bin/sh"
29-
- "-c"
30-
- |
31-
echo "Initialize gateway schema";
32-
PGPASSWORD=pass0000 psql \
33-
-h gateway-backend-db-postgresql.postgres-gateway.svc.cluster.local \
34-
-U gateway -d gateway \
35-
-f /etc/persistence/gateway-ha-persistence-postgres.sql
36-
volumeMounts:
37-
- name: persistence-sql
38-
mountPath: /etc/persistence
3912
containers:
4013
- name: curl
4114
image: alpine

0 commit comments

Comments
 (0)