From 10125df55ef4c2a2b26d3512c75b690a659eedeb Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Thu, 20 Jul 2023 15:16:37 +0200
Subject: [PATCH] OZG-3880 snake case to camel case

---
 src/main/helm/templates/network_policy.yaml | 4 ++--
 src/test/helm/network_policy_test.yaml      | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/helm/templates/network_policy.yaml b/src/main/helm/templates/network_policy.yaml
index 3b51b06b7..70b8ebb48 100644
--- a/src/main/helm/templates/network_policy.yaml
+++ b/src/main/helm/templates/network_policy.yaml
@@ -22,7 +22,7 @@
 # unter der Lizenz sind dem Lizenztext zu entnehmen.
 #
 
-{{- if not (.Values.network_policy).disabled }} 
+{{- if not (.Values.networkPolicy).disabled }} 
 apiVersion: networking.k8s.io/v1
 kind: NetworkPolicy
 metadata:
@@ -45,7 +45,7 @@ spec:
     - podSelector: 
         matchLabels:
           ozg-component: eingangsadapter
-  {{- with (.Values.network_policy).additional_ingress_config }}
+  {{- with (.Values.networkPolicy).additionalIngressConfig }}
   - from:
 {{ toYaml . | indent 8 }}
   {{- end }}
diff --git a/src/test/helm/network_policy_test.yaml b/src/test/helm/network_policy_test.yaml
index 674c033ae..299b0a583 100644
--- a/src/test/helm/network_policy_test.yaml
+++ b/src/test/helm/network_policy_test.yaml
@@ -98,8 +98,8 @@ tests:
 
   - it: add ingress rule by values
     set:
-      network_policy:
-        additional_ingress_config:
+      networkPolicy:
+        additionalIngressConfig:
         - podSelector: 
             matchLabels:
               component: client2
@@ -123,7 +123,7 @@ tests:
 
   - it: test network policy disabled
     set:
-      network_policy:
+      networkPolicy:
         disabled: true
     asserts:
       - hasDocuments:
@@ -131,7 +131,7 @@ tests:
 
   - it: test network policy unset should be disabled
     set:
-      network_policy:
+      networkPolicy:
         disabled: false
     asserts:
       - hasDocuments:
-- 
GitLab