Skip to content
Snippets Groups Projects
Commit b78d0456 authored by OZGCloud's avatar OZGCloud
Browse files

remove https from ingress

parent 768208c9
No related branches found
No related tags found
No related merge requests found
...@@ -89,28 +89,28 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} ...@@ -89,28 +89,28 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- define "app.ingress.host" }} {{- define "app.ingress.host" }}
{{- if .Values.ingress.overrideHost }} {{- if .Values.ingress.overrideHost }}
{{- printf "%s" .Values.ingress.overrideHost }} {{- printf "%s" ( trimPrefix "https://" .Values.ingress.overrideHost ) }}
{{- else }} {{- else }}
{{- if eq (include "app.kopEnvironment" . ) "prod" }} {{- if eq (include "app.kopEnvironment" . ) "prod" }}
{{- if eq (.Values.image).name "formsolutions-adapter" }} {{- if eq (.Values.image).name "formsolutions-adapter" }}
{{- printf "https://%s-fs.ozg-sh.de" (include "app.kopBezeichner" .) }} {{- printf "%s-fs.ozg-sh.de" (include "app.kopBezeichner" .) }}
{{- else }} {{- else }}
{{- printf "https://%s.afm.ozg-sh.de" (include "app.kopBezeichner" .) }} {{- printf "%s.afm.ozg-sh.de" (include "app.kopBezeichner" .) }}
{{- end }} {{- end }}
{{- else if eq (include "app.kopEnvironment" . ) "stage" }} {{- else if eq (include "app.kopEnvironment" . ) "stage" }}
{{- if eq (.Values.image).name "formsolutions-adapter" }} {{- if eq (.Values.image).name "formsolutions-adapter" }}
{{- printf "https://%s-fs.stage.ozg-sh.de" (include "app.kopBezeichner" .) }} {{- printf "%s-fs.stage.ozg-sh.de" (include "app.kopBezeichner" .) }}
{{- else }} {{- else }}
{{- printf "https://%s.stage.afm.ozg-sh.de" (include "app.kopBezeichner" .) }} {{- printf "%s.stage.afm.ozg-sh.de" (include "app.kopBezeichner" .) }}
{{- end }} {{- end }}
{{- else }} {{- else }}
{{- if eq (.Values.image).name "formsolutions-adapter" }} {{- if eq (.Values.image).name "formsolutions-adapter" }}
{{- printf "https://%s-fs.%s.ozg-sh.de" (include "app.kopBezeichner" .) (include "app.kopEnvironment" . ) }} {{- printf "%s-fs.%s.ozg-sh.de" (include "app.kopBezeichner" .) (include "app.kopEnvironment" . ) }}
{{- else }} {{- else }}
{{- printf "https://%s-afm.%s.ozg-sh.de" (include "app.kopBezeichner" .) (include "app.kopEnvironment" . ) }} {{- printf "%s-afm.%s.ozg-sh.de" (include "app.kopBezeichner" .) (include "app.kopEnvironment" . ) }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
......
...@@ -57,10 +57,10 @@ tests: ...@@ -57,10 +57,10 @@ tests:
asserts: asserts:
- equal: - equal:
path: spec.rules[0].host path: spec.rules[0].host
value: https://unit-afm.dev.ozg-sh.de value: unit-afm.dev.ozg-sh.de
- equal: - equal:
path: spec.tls[0].hosts[0] path: spec.tls[0].hosts[0]
value: https://unit-afm.dev.ozg-sh.de value: unit-afm.dev.ozg-sh.de
- it: should create afm test host - it: should create afm test host
set: set:
kop.environment: test kop.environment: test
...@@ -68,10 +68,10 @@ tests: ...@@ -68,10 +68,10 @@ tests:
asserts: asserts:
- equal: - equal:
path: spec.rules[0].host path: spec.rules[0].host
value: https://unit-afm.test.ozg-sh.de value: unit-afm.test.ozg-sh.de
- equal: - equal:
path: spec.tls[0].hosts[0] path: spec.tls[0].hosts[0]
value: https://unit-afm.test.ozg-sh.de value: unit-afm.test.ozg-sh.de
- it: should create afm prod host - it: should create afm prod host
set: set:
kop.environment: prod kop.environment: prod
...@@ -79,10 +79,10 @@ tests: ...@@ -79,10 +79,10 @@ tests:
asserts: asserts:
- equal: - equal:
path: spec.rules[0].host path: spec.rules[0].host
value: https://unit.afm.ozg-sh.de value: unit.afm.ozg-sh.de
- equal: - equal:
path: spec.tls[0].hosts[0] path: spec.tls[0].hosts[0]
value: https://unit.afm.ozg-sh.de value: unit.afm.ozg-sh.de
- it: should create afm stage host - it: should create afm stage host
set: set:
kop.environment: stage kop.environment: stage
...@@ -90,10 +90,10 @@ tests: ...@@ -90,10 +90,10 @@ tests:
asserts: asserts:
- equal: - equal:
path: spec.rules[0].host path: spec.rules[0].host
value: https://unit.stage.afm.ozg-sh.de value: unit.stage.afm.ozg-sh.de
- equal: - equal:
path: spec.tls[0].hosts[0] path: spec.tls[0].hosts[0]
value: https://unit.stage.afm.ozg-sh.de value: unit.stage.afm.ozg-sh.de
- it: should set host - it: should set host
release: release:
namespace: sh-unit-stage namespace: sh-unit-stage
...@@ -104,10 +104,10 @@ tests: ...@@ -104,10 +104,10 @@ tests:
asserts: asserts:
- equal: - equal:
path: spec.rules[0].host path: spec.rules[0].host
value: https://host.dev.ozg-sh.de value: host.dev.ozg-sh.de
- equal: - equal:
path: spec.tls[0].hosts[0] path: spec.tls[0].hosts[0]
value: https://host.dev.ozg-sh.de value: host.dev.ozg-sh.de
- it: should create fs dev host - it: should create fs dev host
set: set:
...@@ -117,10 +117,10 @@ tests: ...@@ -117,10 +117,10 @@ tests:
asserts: asserts:
- equal: - equal:
path: spec.rules[0].host path: spec.rules[0].host
value: https://unit-fs.dev.ozg-sh.de value: unit-fs.dev.ozg-sh.de
- equal: - equal:
path: spec.tls[0].hosts[0] path: spec.tls[0].hosts[0]
value: https://unit-fs.dev.ozg-sh.de value: unit-fs.dev.ozg-sh.de
- it: should create fs test host - it: should create fs test host
set: set:
image.name: formsolutions-adapter image.name: formsolutions-adapter
...@@ -129,10 +129,10 @@ tests: ...@@ -129,10 +129,10 @@ tests:
asserts: asserts:
- equal: - equal:
path: spec.rules[0].host path: spec.rules[0].host
value: https://unit-fs.test.ozg-sh.de value: unit-fs.test.ozg-sh.de
- equal: - equal:
path: spec.tls[0].hosts[0] path: spec.tls[0].hosts[0]
value: https://unit-fs.test.ozg-sh.de value: unit-fs.test.ozg-sh.de
- it: should create fs prod host - it: should create fs prod host
set: set:
image.name: formsolutions-adapter image.name: formsolutions-adapter
...@@ -141,10 +141,10 @@ tests: ...@@ -141,10 +141,10 @@ tests:
asserts: asserts:
- equal: - equal:
path: spec.rules[0].host path: spec.rules[0].host
value: https://unit-fs.ozg-sh.de value: unit-fs.ozg-sh.de
- equal: - equal:
path: spec.tls[0].hosts[0] path: spec.tls[0].hosts[0]
value: https://unit-fs.ozg-sh.de value: unit-fs.ozg-sh.de
- it: should create fs stage host - it: should create fs stage host
set: set:
image.name: formsolutions-adapter image.name: formsolutions-adapter
...@@ -153,7 +153,7 @@ tests: ...@@ -153,7 +153,7 @@ tests:
asserts: asserts:
- equal: - equal:
path: spec.rules[0].host path: spec.rules[0].host
value: https://unit-fs.stage.ozg-sh.de value: unit-fs.stage.ozg-sh.de
- equal: - equal:
path: spec.tls[0].hosts[0] path: spec.tls[0].hosts[0]
value: https://unit-fs.stage.ozg-sh.de value: unit-fs.stage.ozg-sh.de
\ No newline at end of file \ 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