From 690d64cbc67b9921dd67dfe9bd75589e70e874dc Mon Sep 17 00:00:00 2001 From: Malte Sander Date: Fri, 24 May 2024 14:46:22 +0200 Subject: [PATCH] fix hive tests --- examples/simple-trino-cluster-hive-ha-s3.yaml | 12 ++++++++++-- .../kuttl/opa-authorization/03-install-hive.yaml.j2 | 12 ++++++++++-- tests/templates/kuttl/smoke/08-install-hive.yaml.j2 | 12 ++++++++++-- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/examples/simple-trino-cluster-hive-ha-s3.yaml b/examples/simple-trino-cluster-hive-ha-s3.yaml index 4fcfb7bb..7a90e8fa 100644 --- a/examples/simple-trino-cluster-hive-ha-s3.yaml +++ b/examples/simple-trino-cluster-hive-ha-s3.yaml @@ -47,8 +47,7 @@ spec: clusterConfig: database: connString: jdbc:postgresql://hive-postgresql:5432/hive - user: hive - password: hive + credentialsSecret: postgres-credentials dbType: postgres s3: reference: minio @@ -57,6 +56,15 @@ spec: default: replicas: 2 --- +apiVersion: v1 +kind: Secret +metadata: + name: postgres-credentials +type: Opaque +stringData: + username: hive + password: hive +--- apiVersion: s3.stackable.tech/v1alpha1 kind: S3Connection metadata: diff --git a/tests/templates/kuttl/opa-authorization/03-install-hive.yaml.j2 b/tests/templates/kuttl/opa-authorization/03-install-hive.yaml.j2 index 0b48eeb7..72dbbf23 100644 --- a/tests/templates/kuttl/opa-authorization/03-install-hive.yaml.j2 +++ b/tests/templates/kuttl/opa-authorization/03-install-hive.yaml.j2 @@ -10,8 +10,7 @@ spec: clusterConfig: database: connString: jdbc:postgresql://postgresql:5432/hive - user: hive - password: hive + credentialsSecret: postgres-credentials dbType: postgres s3: reference: minio @@ -25,3 +24,12 @@ spec: roleGroups: default: replicas: 1 +--- +apiVersion: v1 +kind: Secret +metadata: + name: postgres-credentials +type: Opaque +stringData: + username: hive + password: hive diff --git a/tests/templates/kuttl/smoke/08-install-hive.yaml.j2 b/tests/templates/kuttl/smoke/08-install-hive.yaml.j2 index bd68dbf9..446ce72a 100644 --- a/tests/templates/kuttl/smoke/08-install-hive.yaml.j2 +++ b/tests/templates/kuttl/smoke/08-install-hive.yaml.j2 @@ -10,8 +10,7 @@ spec: clusterConfig: database: connString: jdbc:postgresql://postgresql:5432/hive - user: hive - password: hive + credentialsSecret: postgres-credentials dbType: postgres hdfs: configMap: hdfs @@ -27,3 +26,12 @@ spec: roleGroups: default: replicas: 2 +--- +apiVersion: v1 +kind: Secret +metadata: + name: postgres-credentials +type: Opaque +stringData: + username: hive + password: hive