2929 ingressClassName : {{ .Values.ingress.className }}
3030 {{- end }}
3131 rules :
32+ {{- if .Values.ingress.hosts }}
33+ {{- range .Values.ingress.hosts }}
34+ - host : {{ . }}
35+ http :
36+ paths :
37+ {{- if and $.Values.raster.enabled (or (not (hasKey $.Values.raster "ingress")) $.Values.raster.ingress.enabled) }}
38+ - pathType : {{ if eq $.Values.ingress.className "nginx" }}ImplementationSpecific{{ else }}Prefix{{ end }}
39+ path : {{ $.Values.raster.ingress.path }}{{ if eq $.Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
40+ backend :
41+ service :
42+ name : raster-{{ $.Release.Name }}
43+ port :
44+ number : {{ $.Values.service.port }}
45+ {{- end }}
46+
47+ {{- if and $.Values.stac.enabled (or (not (hasKey $.Values.stac "ingress")) $.Values.stac.ingress.enabled) }}
48+ - pathType : {{ if eq $.Values.ingress.className "nginx" }}ImplementationSpecific{{ else }}Prefix{{ end }}
49+ path : {{ $.Values.stac.ingress.path }}{{ if eq $.Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
50+ backend :
51+ service :
52+ name : stac-{{ $.Release.Name }}
53+ port :
54+ number : {{ $.Values.service.port }}
55+ {{- end }}
56+
57+ {{- if and $.Values.vector.enabled (or (not (hasKey $.Values.vector "ingress")) $.Values.vector.ingress.enabled) }}
58+ - pathType : {{ if eq $.Values.ingress.className "nginx" }}ImplementationSpecific{{ else }}Prefix{{ end }}
59+ path : {{ $.Values.vector.ingress.path }}{{ if eq $.Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
60+ backend :
61+ service :
62+ name : vector-{{ $.Release.Name }}
63+ port :
64+ number : {{ $.Values.service.port }}
65+ {{- end }}
66+
67+ {{- if and $.Values.multidim.enabled (or (not (hasKey $.Values.multidim "ingress")) $.Values.multidim.ingress.enabled) }}
68+ - pathType : {{ if eq $.Values.ingress.className "nginx" }}ImplementationSpecific{{ else }}Prefix{{ end }}
69+ path : {{ $.Values.multidim.ingress.path }}{{ if eq $.Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
70+ backend :
71+ service :
72+ name : multidim-{{ $.Release.Name }}
73+ port :
74+ number : {{ $.Values.service.port }}
75+ {{- end }}
76+
77+ {{- if $.Values.docServer.enabled }}
78+ - pathType : Prefix
79+ path : " /{{ $.Values.ingress.rootPath | default " " }}"
80+ backend :
81+ service :
82+ name : doc-server-{{ $.Release.Name }}
83+ port :
84+ number : 80
85+ {{- end }}
86+ {{- end }}
87+ {{- else }}
3288 - {{- if .Values.ingress.host }}
3389 host : {{ .Values.ingress.host }}
3490 {{- end }}
4399 port :
44100 number : {{ .Values.service.port }}
45101 {{- end }}
46-
102+
47103 {{- if and .Values.stac.enabled (or (not (hasKey .Values.stac "ingress")) .Values.stac.ingress.enabled) }}
48104 - pathType : {{ if eq .Values.ingress.className "nginx" }}ImplementationSpecific{{ else }}Prefix{{ end }}
49105 path : {{ .Values.stac.ingress.path }}{{ if eq .Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
53109 port :
54110 number : {{ .Values.service.port }}
55111 {{- end }}
56-
112+
57113 {{- if and .Values.vector.enabled (or (not (hasKey .Values.vector "ingress")) .Values.vector.ingress.enabled) }}
58114 - pathType : {{ if eq .Values.ingress.className "nginx" }}ImplementationSpecific{{ else }}Prefix{{ end }}
59115 path : {{ .Values.vector.ingress.path }}{{ if eq .Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
63119 port :
64120 number : {{ .Values.service.port }}
65121 {{- end }}
66-
122+
67123 {{- if and .Values.multidim.enabled (or (not (hasKey .Values.multidim "ingress")) .Values.multidim.ingress.enabled) }}
68124 - pathType : {{ if eq .Values.ingress.className "nginx" }}ImplementationSpecific{{ else }}Prefix{{ end }}
69125 path : {{ .Values.multidim.ingress.path }}{{ if eq .Values.ingress.className "nginx" }}(/|$)(.*){{ end }}
73129 port :
74130 number : {{ .Values.service.port }}
75131 {{- end }}
76-
132+
77133 {{- if .Values.docServer.enabled }}
78134 - pathType : Prefix
79135 path : " /{{ $.Values.ingress.rootPath | default " " }}"
@@ -83,10 +139,17 @@ spec:
83139 port :
84140 number : 80
85141 {{- end }}
86- {{- if and .Values.ingress.host .Values.ingress.tls.enabled }}
142+ {{- end }}
143+ {{- if and .Values.ingress.tls.enabled (or .Values.ingress.hosts .Values.ingress.host) }}
87144 tls :
88145 - hosts :
146+ {{- if .Values.ingress.hosts }}
147+ {{- range .Values.ingress.hosts }}
148+ - {{ . }}
149+ {{- end }}
150+ {{- else if .Values.ingress.host }}
89151 - {{ .Values.ingress.host }}
152+ {{- end }}
90153 secretName : {{ .Values.ingress.tls.secretName }}
91154 {{- end }}
92155{{- end }}
0 commit comments