From ec64aa92dadde3d166867e529d4db1ac0313327e Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Thu, 21 Dec 2023 17:38:22 +0100
Subject: [PATCH] OZG-4453 adjust host, credential-secret-dataKey

---
 .../src/main/resources/application.yml                        | 4 ++--
 .../src/test/resources/application.yml                        | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ozgcloud-elasticsearch-operator/src/main/resources/application.yml b/ozgcloud-elasticsearch-operator/src/main/resources/application.yml
index b9c03f4..8d392b6 100644
--- a/ozgcloud-elasticsearch-operator/src/main/resources/application.yml
+++ b/ozgcloud-elasticsearch-operator/src/main/resources/application.yml
@@ -6,11 +6,11 @@ ozgcloud:
       namespace: elastic-system
       secretName: ozg-search-cluster-es-elastic-user
       secretDataKey: elastic
-      host: ozg-search-cluster-es-http
+      host: ozg-search-cluster-es-http.${ozgcloud.elasticsearch.server.namespace}.svc.cluster.local
       port: 9200
       scheme: https
       certificateSecretName: elasticsearch-certificate
-      certificateSecretDataKey: tlsCrt
+      certificateSecretDataKey: ca.crt
 
 management:
   server:
diff --git a/ozgcloud-elasticsearch-operator/src/test/resources/application.yml b/ozgcloud-elasticsearch-operator/src/test/resources/application.yml
index 56a0ea8..8f8d5b7 100644
--- a/ozgcloud-elasticsearch-operator/src/test/resources/application.yml
+++ b/ozgcloud-elasticsearch-operator/src/test/resources/application.yml
@@ -6,7 +6,7 @@ ozgcloud:
       namespace: elastic-system
       secretName: ozg-search-cluster-es-elastic-user
       secretDataKey: elastic
-      host: ozg-search-cluster-es-http
+      host: ozg-search-cluster-es-http.${ozgcloud.elasticsearch.server.namespace}.svc.cluster.local
       port: 9200
       scheme: https
       certificateSecretName: elasticsearch-certificate
\ No newline at end of file
-- 
GitLab