Skip to content

Commit

Permalink
chore: rename default-ingress to alb-ssl-ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
argoyle committed Aug 14, 2024
1 parent 6983cae commit 7bdaf24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions addons/default-ingress.yaml → addons/alb-ssl-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: alb-ssl-ingress
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand All @@ -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 }'
Expand Down
6 changes: 3 additions & 3 deletions default_ingress.tf → alb_ssl_ingress.tf
Original file line number Diff line number Diff line change
@@ -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}"
})
}]
}

0 comments on commit 7bdaf24

Please sign in to comment.