@@ -9,20 +9,20 @@ metadata:
9
9
labels :
10
10
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
11
11
{{- with .Values.server.ingress.labels }}
12
- {{- toYaml . | nindent 4 }}
12
+ {{- tpl ( toYaml .) $ | nindent 4 }}
13
13
{{- end }}
14
14
{{- with .Values.server.ingress.annotations }}
15
15
annotations :
16
16
{{- range $key, $value := . }}
17
- {{ $key }}: {{ $value | quote }}
17
+ {{ $key }}: {{ tpl $value $ | quote }}
18
18
{{- end }}
19
19
{{- end }}
20
20
spec :
21
21
{{- with .Values.server.ingress.ingressClassName }}
22
- ingressClassName : {{ . }}
22
+ ingressClassName : {{ tpl . $ }}
23
23
{{- end }}
24
24
rules :
25
- - host : {{ .Values.server.ingress.hostname | default .Values.global.domain }}
25
+ - host : {{ tpl ( .Values.server.ingress.hostname) $ | default .Values.global.domain }}
26
26
http :
27
27
paths :
28
28
{{- with .Values.server.ingress.extraPaths }}
36
36
port :
37
37
number : {{ $servicePort }}
38
38
{{- range .Values.server.ingress.extraHosts }}
39
- - host : {{ .name | quote }}
39
+ - host : {{ tpl .name $ | quote }}
40
40
http :
41
41
paths :
42
42
- path : {{ default $.Values.server.ingress.path .path }}
@@ -54,10 +54,10 @@ spec:
54
54
tls :
55
55
{{- if .Values.server.ingress.tls }}
56
56
- hosts :
57
- - {{ .Values.server.ingress.hostname | default .Values.global.domain }}
57
+ - {{ tpl ( .Values.server.ingress.hostname) $ | default .Values.global.domain }}
58
58
{{- range .Values.server.ingress.extraHosts }}
59
59
{{- if .name }}
60
- - {{ .name }}
60
+ - {{ tpl .name $ }}
61
61
{{- end }}
62
62
{{- end }}
63
63
secretName : argocd-server-tls
0 commit comments