From 7b2484962b730c3ec8b6967d9ef157db8d4b0a44 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 23 Jan 2024 07:59:14 -0500 Subject: [PATCH] fix: set tls field on ingress-route --- plugins/scheduler-k3s/templates/chart/ingress-route.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/scheduler-k3s/templates/chart/ingress-route.yaml b/plugins/scheduler-k3s/templates/chart/ingress-route.yaml index 5b48bb806..cb306f81d 100644 --- a/plugins/scheduler-k3s/templates/chart/ingress-route.yaml +++ b/plugins/scheduler-k3s/templates/chart/ingress-route.yaml @@ -31,5 +31,9 @@ spec: port: {{ $port_map.name }} scheme: {{ $port_map.scheme }} {{- end }} + {{- if and $config.web.tls (eq $port_map.scheme "https") }} + tls: + secretName: tls-{{ $.Values.global.app_name }}-{{ $processName }} + {{- end }} {{- end }} {{- end }}