feat: fix name
Some checks reported errors
continuous-integration/drone/push Build encountered an error

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-05-27 22:43:21 +02:00
parent 284648fe79
commit c08dcb049d
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -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