From c08dcb049d39e0d363a6c102b59d620f82acdc1a Mon Sep 17 00:00:00 2001 From: kjuulh Date: Mon, 27 May 2024 22:43:21 +0200 Subject: [PATCH] feat: fix name Signed-off-by: kjuulh --- crates/cuddle-clusters/src/catalog/ingress.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/cuddle-clusters/src/catalog/ingress.rs b/crates/cuddle-clusters/src/catalog/ingress.rs index 769b7fd..2d631c3 100644 --- a/crates/cuddle-clusters/src/catalog/ingress.rs +++ b/crates/cuddle-clusters/src/catalog/ingress.rs @@ -65,7 +65,7 @@ impl Component for Ingress { match ingress_type { IngressType::External => templates.push( r#" -{%- set service_name = vars.cuddle_vars.service | replace("-", "_") %} +{%- set service_name = vars.cuddle_vars.service %} {%- set host_name = vars.cuddle_vars.service | replace("_", "-") | replace(".", "-") %} --- apiVersion: networking.k8s.io/v1 @@ -100,7 +100,7 @@ spec: ), IngressType::Internal => templates.push( r#" -{%- set service_name = vars.cuddle_vars.service | replace("-", "_") %} +{%- set service_name = vars.cuddle_vars.service %} {%- set host_name = vars.cuddle_vars.service | replace("_", "-") | replace(".", "-") %} --- apiVersion: networking.k8s.io/v1