From 3296dd0ae60c0d0c0d86c144f4e851fe033fbc6f Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Wed, 6 Mar 2024 17:20:11 -0600 Subject: [PATCH] simplify --- stack_orchestrator/deploy/k8s/cluster_info.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/stack_orchestrator/deploy/k8s/cluster_info.py b/stack_orchestrator/deploy/k8s/cluster_info.py index 2c89194d..dbf7c907 100644 --- a/stack_orchestrator/deploy/k8s/cluster_info.py +++ b/stack_orchestrator/deploy/k8s/cluster_info.py @@ -112,16 +112,10 @@ class ClusterInfo: print(f"http-proxy: {http_proxy_info}") # TODO: good enough parsing for webapp deployment for now host_name = http_proxy_info["host-name"] - - tls_hosts = [host_name], - tls_secret_name = f"{self.app_name}-tls" - if certificate: - tls_hosts = certificate["spec"]["dnsNames"] - tls_secret_name = certificate["spec"]["secretName"] rules = [] tls = [client.V1IngressTLS( - hosts=tls_hosts, - secret_name=tls_secret_name + hosts=certificate["spec"]["dnsNames"] if certificate else [host_name], + secret_name=certificate["spec"]["secretName"] if certificate else f"{self.app_name}-tls" )] if use_tls else None paths = [] for route in http_proxy_info["routes"]: