Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eingang-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
eingang-manager
Commits
b78d0456
Commit
b78d0456
authored
3 years ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
remove https from ingress
parent
768208c9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/_helpers.tpl
+7
-7
7 additions, 7 deletions
templates/_helpers.tpl
unit-tests/ingress_test.yaml
+18
-18
18 additions, 18 deletions
unit-tests/ingress_test.yaml
with
25 additions
and
25 deletions
templates/_helpers.tpl
+
7
−
7
View file @
b78d0456
...
@@ -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 }}
...
...
This diff is collapsed.
Click to expand it.
unit-tests/ingress_test.yaml
+
18
−
18
View file @
b78d0456
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment