diff --git a/src/main/helm/templates/configmap.yaml b/src/main/helm/templates/configmap.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8e4fbacefd484339668748edd53d0f4503a14ac5 --- /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 0000000000000000000000000000000000000000..977a3590f65ec573917cbe7bc958199613ce343f --- /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