From ad89180159d963e87185e567b65eb1bb5a8c9503 Mon Sep 17 00:00:00 2001 From: Flamarion Jorge Date: Fri, 1 Mar 2024 14:57:46 +0100 Subject: [PATCH] fix: Remove unused module --- modules/app_ingress/main.tf | 72 -------------------------------- modules/app_ingress/variables.tf | 8 ---- 2 files changed, 80 deletions(-) delete mode 100644 modules/app_ingress/main.tf delete mode 100644 modules/app_ingress/variables.tf diff --git a/modules/app_ingress/main.tf b/modules/app_ingress/main.tf deleted file mode 100644 index 0dfddd6..0000000 --- a/modules/app_ingress/main.tf +++ /dev/null @@ -1,72 +0,0 @@ -locals { - deployment_is_private = false - ssl_certificate_name = null - tls_secret_name = "wandb-ssl-cert" - host = trimprefix(trimprefix(var.fqdn, "https://"), "http://") - service_name = "wandb" - service_port = 8080 -} - -resource "kubernetes_ingress_v1" "default" { - wait_for_load_balancer = false - - metadata { - name = "wandb" - annotations = { - "kubernetes.io/ingress.class" = "azure/application-gateway" - "appgw.ingress.kubernetes.io/appgw-ssl-certificate" = local.ssl_certificate_name - "appgw.ingress.kubernetes.io/use-private-ip" = local.deployment_is_private ? "true" : null - "cert-manager.io/cluster-issuer" = local.deployment_is_private ? null : "cert-issuer" - "cert-manager.io/acme-challenge-type" = local.deployment_is_private ? null : "http01" - } - } - spec { - tls { - hosts = local.deployment_is_private ? null : [local.host] - secret_name = local.deployment_is_private ? null : local.tls_secret_name - } - - default_backend { - service { - name = local.service_name - port { - number = local.service_port - } - } - } - - rule { - http { - path { - path = "/" - backend { - service { - name = local.service_name - port { - number = local.service_port - } - } - } - } - } - } - - rule { - host = local.host - http { - path { - path = "/" - path_type = "Prefix" - backend { - service { - name = local.service_name - port { - number = local.service_port - } - } - } - } - } - } - } -} diff --git a/modules/app_ingress/variables.tf b/modules/app_ingress/variables.tf deleted file mode 100644 index ef9ce01..0000000 --- a/modules/app_ingress/variables.tf +++ /dev/null @@ -1,8 +0,0 @@ -variable "fqdn" { - type = string - description = "Fully qualified domain name." -} - -variable "namespace" { - type = string -} \ No newline at end of file