EOX GitLab Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
View Server 2
client
Commits
afe71f96
Commit
afe71f96
authored
Nov 26, 2021
by
Nikola Jankovic
💻
Browse files
defaulting to global ingress if local not set
parent
a4b98409
Pipeline
#19006
passed with stage
in 3 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
chart/templates/ingress.yaml
View file @
afe71f96
...
...
@@ -10,15 +10,15 @@ metadata:
name
:
{{
$fullName
}}
labels
:
{{
- include "vs-client.labels" . | nindent 4
}}
{{
- with .Values.global.ingress.annotations
}}
{{
- with
.Values.ingress.annotations | default
.Values.global.ingress.annotations
}}
annotations
:
{{
- toYaml . | nindent 4
}}
nginx.ingress.kubernetes.io/rewrite-target
:
/$1
{{
- end
}}
spec
:
{{
- if .Values.global.ingress.tls
}}
{{
- if
.Values.ingress.tls | default
.Values.global.ingress.tls
}}
tls
:
{{
- range .Values.global.ingress.tls
}}
{{
- range
.Values.ingress.tls | default
.Values.global.ingress.tls
}}
-
hosts
:
{{
- range .hosts
}}
-
{{
. | quote
}}
...
...
@@ -27,7 +27,7 @@ spec:
{{
- end
}}
{{
- end
}}
rules
:
{{
- range .Values.global.ingress.hosts
}}
{{
- range
.Values.ingress.hosts | default
.Values.global.ingress.hosts
}}
{{
- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion
}}
-
host
:
{{
.host | quote
}}
http
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment