From 518d9c85486a7099239befbfc8a10151253eb422 Mon Sep 17 00:00:00 2001
From: Martin <git@mail.de>
Date: Fri, 22 Nov 2024 11:45:52 +0100
Subject: [PATCH] OZG-7121 add configmap

---
 src/main/helm/templates/configmap.yaml |  8 +++++++
 src/test/helm/configmap_test.yaml      | 31 ++++++++++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 src/main/helm/templates/configmap.yaml
 create mode 100644 src/test/helm/configmap_test.yaml

diff --git a/src/main/helm/templates/configmap.yaml b/src/main/helm/templates/configmap.yaml
new file mode 100644
index 0000000..8e4fbac
--- /dev/null
+++ b/src/main/helm/templates/configmap.yaml
@@ -0,0 +1,8 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: {{ .Release.Name }}-bindings-type
+  namespace: {{ include "app.namespace" . }}
+data:
+  type: |
+    ca-certificates
\ No newline at end of file
diff --git a/src/test/helm/configmap_test.yaml b/src/test/helm/configmap_test.yaml
new file mode 100644
index 0000000..977a359
--- /dev/null
+++ b/src/test/helm/configmap_test.yaml
@@ -0,0 +1,31 @@
+suite: configmap test
+templates:
+  - templates/configmap.yaml
+release:
+  name: release-name
+  namespace: helm-test
+tests:
+  - it: should have apiVersion
+    asserts:
+      - isAPIVersion:
+          of: v1
+
+  - it: should have kind
+    asserts:
+      - isKind:
+          of: ConfigMap
+
+  - it: should have metadata
+    asserts:
+      - equal:
+          path: metadata.name
+          value: release-name-bindings-type
+      - equal:
+          path: metadata.namespace
+          value: helm-test
+
+  - it: should have data
+    asserts:
+      - equal:
+          path: data.type
+          value: ca-certificates
\ No newline at end of file
-- 
GitLab