Skip to content
Snippets Groups Projects
Commit ebab2b2b authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

remove formsolutions from helm

parent 782a3e93
Branches
Tags
1 merge request!8Revert deleting of intelliform-helm charts
...@@ -91,8 +91,6 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} ...@@ -91,8 +91,6 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- define "app.ingress.host" }} {{- define "app.ingress.host" }}
{{- if (.Values.ingress).adapterBezeichner }} {{- if (.Values.ingress).adapterBezeichner }}
{{- printf "%s-%s.%s" (include "app.ozgcloudBezeichner" .) .Values.ingress.adapterBezeichner .Values.baseUrl }} {{- printf "%s-%s.%s" (include "app.ozgcloudBezeichner" .) .Values.ingress.adapterBezeichner .Values.baseUrl }}
{{- else if eq (.Values.image).name "formsolutions-adapter" }}
{{- printf "%s-fs.%s" (include "app.ozgcloudBezeichner" .) .Values.baseUrl }}
{{- else if eq (.Values.image).name "formcycle-adapter" }} {{- else if eq (.Values.image).name "formcycle-adapter" }}
{{- printf "%s-formcycle.%s" (include "app.ozgcloudBezeichner" .) .Values.baseUrl }} {{- printf "%s-formcycle.%s" (include "app.ozgcloudBezeichner" .) .Values.baseUrl }}
{{- else }} {{- else }}
...@@ -105,8 +103,6 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} ...@@ -105,8 +103,6 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- printf "%s" .Values.serviceAccount.name }} {{- printf "%s" .Values.serviceAccount.name }}
{{- else if eq (.Values.image).name "intelliform-adapter" }} {{- else if eq (.Values.image).name "intelliform-adapter" }}
{{- printf "afm-adapter-service-account" }} {{- printf "afm-adapter-service-account" }}
{{- else if eq (.Values.image).name "formsolutions-adapter" }}
{{- printf "fs-adapter-service-account" }}
{{- else if eq (.Values.image).name "formcycle-adapter" }} {{- else if eq (.Values.image).name "formcycle-adapter" }}
{{- printf "formcycle-adapter-service-account" }} {{- printf "formcycle-adapter-service-account" }}
{{- else if eq (.Values.image).name "enterprise-adapter" }} {{- else if eq (.Values.image).name "enterprise-adapter" }}
......
...@@ -42,15 +42,6 @@ tests: ...@@ -42,15 +42,6 @@ tests:
- equal: - equal:
path: spec.template.spec.serviceAccountName path: spec.template.spec.serviceAccountName
value: afm-adapter-service-account value: afm-adapter-service-account
- it: should use fs-adapter service account name
set:
image.name: formsolutions-adapter
serviceAccount:
create: true
asserts:
- equal:
path: spec.template.spec.serviceAccountName
value: fs-adapter-service-account
- it: should use formcycle-adapter service account name - it: should use formcycle-adapter service account name
set: set:
image.name: formcycle-adapter image.name: formcycle-adapter
...@@ -81,4 +72,4 @@ tests: ...@@ -81,4 +72,4 @@ tests:
- it: should use default service account - it: should use default service account
asserts: asserts:
- isNull: - isNull:
path: spec.template.spec.serviceAccountName path: spec.template.spec.serviceAccountName
\ No newline at end of file
...@@ -29,7 +29,7 @@ templates: ...@@ -29,7 +29,7 @@ templates:
set: set:
ozgcloud: ozgcloud:
bezeichner: helm bezeichner: helm
tests: tests:
- it: should create afm ingress tls - it: should create afm ingress tls
release: release:
...@@ -38,15 +38,6 @@ tests: ...@@ -38,15 +38,6 @@ tests:
- equal: - equal:
path: spec.tls[0].secretName path: spec.tls[0].secretName
value: helm-afm-adapter-tls value: helm-afm-adapter-tls
- it: should create afm ingress tls
release:
name: fs-adapter
set:
image.name: formsolutions-adapter
asserts:
- equal:
path: spec.tls[0].secretName
value: helm-fs-adapter-tls
- it: should not set secretName - it: should not set secretName
set: set:
...@@ -65,4 +56,4 @@ tests: ...@@ -65,4 +56,4 @@ tests:
asserts: asserts:
- equal: - equal:
path: spec.ingressClassName path: spec.ingressClassName
value: nginx value: nginx
\ No newline at end of file
...@@ -72,17 +72,6 @@ tests: ...@@ -72,17 +72,6 @@ tests:
path: spec.tls[0].hosts[0] path: spec.tls[0].hosts[0]
value: helm-afm.test.sh.ozg-cloud.de value: helm-afm.test.sh.ozg-cloud.de
- it: should create fs host
set:
image.name: formsolutions-adapter
asserts:
- equal:
path: spec.rules[0].host
value: helm-fs.test.sh.ozg-cloud.de
- equal:
path: spec.tls[0].hosts[0]
value: helm-fs.test.sh.ozg-cloud.de
- it: should create formcycle host - it: should create formcycle host
set: set:
image.name: formcycle-adapter image.name: formcycle-adapter
......
...@@ -42,21 +42,6 @@ tests: ...@@ -42,21 +42,6 @@ tests:
- equal: - equal:
path: metadata.name path: metadata.name
value: afm-adapter-service-account value: afm-adapter-service-account
- equal:
path: metadata.namespace
value: sh-helm-test
- it: should create default fs adapter service account name
set:
image.name: formsolutions-adapter
serviceAccount:
create: true
asserts:
- isKind:
of: ServiceAccount
- equal:
path: metadata.name
value: fs-adapter-service-account
- equal: - equal:
path: metadata.namespace path: metadata.namespace
value: sh-helm-test value: sh-helm-test
...@@ -105,4 +90,4 @@ tests: ...@@ -105,4 +90,4 @@ tests:
- it: should not create service account - it: should not create service account
asserts: asserts:
- hasDocuments: - hasDocuments:
count: 0 count: 0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment