Skip to content

Commit bc30e68

Browse files
authored
Fix integration tests with hive db credentials (#596)
* fix hive tests * fix linter
1 parent 9d5b214 commit bc30e68

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

examples/simple-trino-cluster-hive-ha-s3.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ spec:
4747
clusterConfig:
4848
database:
4949
connString: jdbc:postgresql://hive-postgresql:5432/hive
50-
user: hive
51-
password: hive
50+
credentialsSecret: postgres-credentials
5251
dbType: postgres
5352
s3:
5453
reference: minio
@@ -57,6 +56,15 @@ spec:
5756
default:
5857
replicas: 2
5958
---
59+
apiVersion: v1
60+
kind: Secret
61+
metadata:
62+
name: postgres-credentials
63+
type: Opaque
64+
stringData:
65+
username: hive
66+
password: hive
67+
---
6068
apiVersion: s3.stackable.tech/v1alpha1
6169
kind: S3Connection
6270
metadata:

tests/templates/kuttl/opa-authorization/03-install-hive.yaml.j2

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ spec:
1010
clusterConfig:
1111
database:
1212
connString: jdbc:postgresql://postgresql:5432/hive
13-
user: hive
14-
password: hive
13+
credentialsSecret: postgres-credentials
1514
dbType: postgres
1615
s3:
1716
reference: minio
@@ -25,3 +24,12 @@ spec:
2524
roleGroups:
2625
default:
2726
replicas: 1
27+
---
28+
apiVersion: v1
29+
kind: Secret
30+
metadata:
31+
name: postgres-credentials
32+
type: Opaque
33+
stringData:
34+
username: hive
35+
password: hive

tests/templates/kuttl/smoke/08-install-hive.yaml.j2

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ spec:
1010
clusterConfig:
1111
database:
1212
connString: jdbc:postgresql://postgresql:5432/hive
13-
user: hive
14-
password: hive
13+
credentialsSecret: postgres-credentials
1514
dbType: postgres
1615
hdfs:
1716
configMap: hdfs
@@ -27,3 +26,12 @@ spec:
2726
roleGroups:
2827
default:
2928
replicas: 2
29+
---
30+
apiVersion: v1
31+
kind: Secret
32+
metadata:
33+
name: postgres-credentials
34+
type: Opaque
35+
stringData:
36+
username: hive
37+
password: hive

0 commit comments

Comments
 (0)