From c0568ab10b48b5c9bdce8779a8b38c6632127808 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Wed, 3 Jan 2024 16:46:59 +0100
Subject: [PATCH] OZG-4453 fix certificate mounts secret name

---
 ozgcloud-elasticsearch-operator/src/main/helm/values.yaml       | 2 +-
 .../src/main/resources/application.yml                          | 2 +-
 .../src/test/helm/deployment_volumes.yaml                       | 2 +-
 ...loud_elasticsearch_operator_admin_secret_view_role_test.yaml | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ozgcloud-elasticsearch-operator/src/main/helm/values.yaml b/ozgcloud-elasticsearch-operator/src/main/helm/values.yaml
index 14594d7..e4b3820 100644
--- a/ozgcloud-elasticsearch-operator/src/main/helm/values.yaml
+++ b/ozgcloud-elasticsearch-operator/src/main/helm/values.yaml
@@ -5,4 +5,4 @@ image:
 elasticsearch:
     namespace: elastic-system
     adminSecretName: ozg-search-cluster-es-elastic-user
-    certificateSecretName: ozg-search-cluster-es-ozg-search-es-transport-certs
+    certificateSecretName: ozg-search-cluster-es-http-ca-internal
diff --git a/ozgcloud-elasticsearch-operator/src/main/resources/application.yml b/ozgcloud-elasticsearch-operator/src/main/resources/application.yml
index 0ad7890..8fe6660 100644
--- a/ozgcloud-elasticsearch-operator/src/main/resources/application.yml
+++ b/ozgcloud-elasticsearch-operator/src/main/resources/application.yml
@@ -10,7 +10,7 @@ ozgcloud:
       port: 9200
       scheme: https
       certificateNamespace: ozgcloud-elasticsearch-operator
-      certificateSecretName: ozg-search-cluster-es-ozg-search-es-transport-certs
+      certificateSecretName: ozg-search-cluster-es-http-ca-internal
       certificateSecretDataKey: ca.crt
 
 management:
diff --git a/ozgcloud-elasticsearch-operator/src/test/helm/deployment_volumes.yaml b/ozgcloud-elasticsearch-operator/src/test/helm/deployment_volumes.yaml
index 30fa6aa..15ce39b 100644
--- a/ozgcloud-elasticsearch-operator/src/test/helm/deployment_volumes.yaml
+++ b/ozgcloud-elasticsearch-operator/src/test/helm/deployment_volumes.yaml
@@ -60,7 +60,7 @@ tests:
           content:  
               name: elasticsearch-certificate
               secret:
-                secretName: ozg-search-cluster-es-ozg-search-es-transport-certs
+                secretName: ozg-search-cluster-es-http-ca-internal
                 optional: false
 
   - it: should create volumeMounts
diff --git a/ozgcloud-elasticsearch-operator/src/test/helm/rbac/ozgcloud_elasticsearch_operator_admin_secret_view_role_test.yaml b/ozgcloud-elasticsearch-operator/src/test/helm/rbac/ozgcloud_elasticsearch_operator_admin_secret_view_role_test.yaml
index 3e80b1c..9604c57 100644
--- a/ozgcloud-elasticsearch-operator/src/test/helm/rbac/ozgcloud_elasticsearch_operator_admin_secret_view_role_test.yaml
+++ b/ozgcloud-elasticsearch-operator/src/test/helm/rbac/ozgcloud_elasticsearch_operator_admin_secret_view_role_test.yaml
@@ -60,7 +60,7 @@ tests:
                 - ""
               resourceNames:
                 - ozg-search-cluster-es-elastic-user
-                - ozg-search-cluster-es-ozg-search-es-transport-certs
+                - ozg-search-cluster-es-http-ca-internal
               resources:
                 - secrets
               verbs:
-- 
GitLab