EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 0e96b9c9 authored by Nikola Jankovic's avatar Nikola Jankovic :computer:
Browse files

defaulting to global ingress if local not set

parent 48479135
No related branches found
No related tags found
1 merge request!2added dev tooling and linting
Pipeline #19007 passed
......@@ -10,15 +10,15 @@ metadata:
name: {{ $fullName }}
labels:
{{- include "vs-renderer.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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment