From ad9ca49f7cab8bde5144326ede2907b3883d543f Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 29 May 2024 22:05:10 +0200 Subject: [PATCH] feat: fix scheme Signed-off-by: kjuulh --- crates/cuddle-clusters/src/catalog/ingress.rs | 2 +- .../tests/with_ingress/expected/dev/ingress.yaml | 4 ++-- .../tests/with_ingress/expected/prod/ingress.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/cuddle-clusters/src/catalog/ingress.rs b/crates/cuddle-clusters/src/catalog/ingress.rs index e7465bd..228b980 100644 --- a/crates/cuddle-clusters/src/catalog/ingress.rs +++ b/crates/cuddle-clusters/src/catalog/ingress.rs @@ -46,7 +46,7 @@ metadata: traefik.ingress.kubernetes.io/router.entrypoints: web traefik.ingress.kubernetes.io/router.tls: "true" <%- if connection_type == "grpc" %> - traefik.http.services.{{ service_name }}-<>.loadbalancer.server.scheme=h2c + traefik.http.services.{{ service_name }}-<>.loadbalancer.server.scheme: h2c <%- endif %> labels: app: {{ service_name }} diff --git a/crates/cuddle-clusters/tests/with_ingress/expected/dev/ingress.yaml b/crates/cuddle-clusters/tests/with_ingress/expected/dev/ingress.yaml index 6bde6b7..cf5d106 100644 --- a/crates/cuddle-clusters/tests/with_ingress/expected/dev/ingress.yaml +++ b/crates/cuddle-clusters/tests/with_ingress/expected/dev/ingress.yaml @@ -68,7 +68,7 @@ metadata: cert-manager.io/issuer: kjuulh-app traefik.ingress.kubernetes.io/router.entrypoints: web traefik.ingress.kubernetes.io/router.tls: "true" - traefik.http.services.service-external-grpc.loadbalancer.server.scheme=h2c + traefik.http.services.service-external-grpc.loadbalancer.server.scheme: h2c labels: app: service cluster: dev @@ -99,7 +99,7 @@ metadata: cert-manager.io/issuer: kjuulh-app traefik.ingress.kubernetes.io/router.entrypoints: web traefik.ingress.kubernetes.io/router.tls: "true" - traefik.http.services.service-internal-grpc.loadbalancer.server.scheme=h2c + traefik.http.services.service-internal-grpc.loadbalancer.server.scheme: h2c labels: app: service cluster: dev diff --git a/crates/cuddle-clusters/tests/with_ingress/expected/prod/ingress.yaml b/crates/cuddle-clusters/tests/with_ingress/expected/prod/ingress.yaml index 5addf3a..f6320b6 100644 --- a/crates/cuddle-clusters/tests/with_ingress/expected/prod/ingress.yaml +++ b/crates/cuddle-clusters/tests/with_ingress/expected/prod/ingress.yaml @@ -68,7 +68,7 @@ metadata: cert-manager.io/issuer: kjuulh-app traefik.ingress.kubernetes.io/router.entrypoints: web traefik.ingress.kubernetes.io/router.tls: "true" - traefik.http.services.service-external-grpc.loadbalancer.server.scheme=h2c + traefik.http.services.service-external-grpc.loadbalancer.server.scheme: h2c labels: app: service cluster: prod @@ -99,7 +99,7 @@ metadata: cert-manager.io/issuer: kjuulh-app traefik.ingress.kubernetes.io/router.entrypoints: web traefik.ingress.kubernetes.io/router.tls: "true" - traefik.http.services.service-internal-grpc.loadbalancer.server.scheme=h2c + traefik.http.services.service-internal-grpc.loadbalancer.server.scheme: h2c labels: app: service cluster: prod