EOX GitLab Instance

Commit 8a9c8db4 authored by Nikola Jankovic's avatar Nikola Jankovic 💻
Browse files

defaulting to global ingress if local not set

parent 20ecf5b8
......@@ -10,15 +10,15 @@ metadata:
name: {{ $fullName }}
labels:
{{- include "vs-cache.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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment