File tree 1 file changed +8
-2
lines changed
charts/kubernetes-dashboard/templates/networking
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 15
15
{{- if and .Values.app.ingress.enabled (eq .Values.app.mode "dashboard")}}
16
16
{{- include "kubernetes-dashboard.validate.ingressIssuerScope" $ }}
17
17
18
+
19
+ # Determine the service port to use for the ingress configuration
20
+ # If TLS is enabled in the ingress configuration, use the TLS service port.
21
+ # Otherwise, fall back to the HTTP service port.
22
+ {{- $servicePort := (ternary $.Values.kong.proxy.tls.servicePort $.Values.kong.proxy.http.servicePort $.Values.app.ingress.tls.enabled) }}
23
+
18
24
kind : Ingress
19
25
apiVersion : networking.k8s.io/v1
20
26
metadata :
73
79
service :
74
80
name : {{ template "kong.fullname" (index $.Subcharts "kong") }}-proxy
75
81
port :
76
- number : {{ $.Values.kong.proxy.tls. servicePort }}
82
+ number : {{ $servicePort }}
77
83
{{- end }}
78
84
{{- else }}
79
85
- http :
84
90
service :
85
91
name : {{ template "kong.fullname" (index $.Subcharts "kong") }}-proxy
86
92
port :
87
- number : {{ $.Values.kong.proxy.tls. servicePort }}
93
+ number : {{ $servicePort }}
88
94
{{- end }}
89
95
{{- end }}
You can’t perform that action at this time.
0 commit comments