simplify
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 47s
Webapp Test / Run webapp test suite (pull_request) Successful in 3m59s
Deploy Test / Run deploy test suite (pull_request) Successful in 6m18s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 8m18s
Smoke Test / Run basic test suite (pull_request) Successful in 5m11s

This commit is contained in:
Thomas E Lackey 2024-03-06 17:20:11 -06:00
parent 57e1cf7883
commit 3296dd0ae6

View File

@ -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"]: