From e38f9d5cf96447a9b861818655081f8d9168173e Mon Sep 17 00:00:00 2001 From: jukkap Date: Tue, 8 Oct 2024 15:18:51 +0300 Subject: [PATCH] feat: make route optional --- charts/fmi-routes/templates/route.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/fmi-routes/templates/route.yaml b/charts/fmi-routes/templates/route.yaml index e41f7d8..c62f26c 100644 --- a/charts/fmi-routes/templates/route.yaml +++ b/charts/fmi-routes/templates/route.yaml @@ -15,7 +15,9 @@ metadata: {{- end }} spec: host: {{ $route.host }} + {{- if $route.path }} path: {{ $route.path }} + {{ - end }} port: targetPort: {{ $route.targetPort }} to: