From 7bdaf2457bad0b1effe3ceb8bc8ca097101b6eb5 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Wed, 14 Aug 2024 09:06:34 +0200 Subject: [PATCH] chore: rename default-ingress to alb-ssl-ingress --- addons/{default-ingress.yaml => alb-ssl-ingress.yaml} | 9 +++++++-- default_ingress.tf => alb_ssl_ingress.tf | 6 +++--- 2 files changed, 10 insertions(+), 5 deletions(-) rename addons/{default-ingress.yaml => alb-ssl-ingress.yaml} (88%) rename default_ingress.tf => alb_ssl_ingress.tf (51%) diff --git a/addons/default-ingress.yaml b/addons/alb-ssl-ingress.yaml similarity index 88% rename from addons/default-ingress.yaml rename to addons/alb-ssl-ingress.yaml index fcb76d6..7dc228b 100644 --- a/addons/default-ingress.yaml +++ b/addons/alb-ssl-ingress.yaml @@ -1,3 +1,8 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: alb-ssl-ingress +--- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: @@ -11,8 +16,8 @@ metadata: alb.ingress.kubernetes.io/ssl-policy: '${ ssl_policy }' alb.ingress.kubernetes.io/actions.response-200: > {"type":"fixed-response","fixedResponseConfig":{"contentType":"text/plain","statusCode":"200","messageBody":"Default"}} - name: default-ingress - namespace: default + name: alb-ssl-ingress + namespace: alb-ssl-ingress spec: rules: - host: '${ host }' diff --git a/default_ingress.tf b/alb_ssl_ingress.tf similarity index 51% rename from default_ingress.tf rename to alb_ssl_ingress.tf index 0745ed0..9fefb85 100644 --- a/default_ingress.tf +++ b/alb_ssl_ingress.tf @@ -1,10 +1,10 @@ locals { default_ingress = [{ - name = "default_ingress" + name = "alb_ssl_ingress" version = "1.0" - content = templatefile("${path.module}/addons/default-ingress.yaml", { + content = templatefile("${path.module}/addons/alb-ssl-ingress.yaml", { ssl_policy : var.alb_ssl_policy != null ? var.alb_ssl_policy : "", - host : "default--ingress.${var.dns_zone}" + host : "alb-ssl--ingress.${var.dns_zone}" }) }] }