Update status cmd
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 28s
Webapp Test / Run webapp test suite (pull_request) Successful in 2m50s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m22s
Smoke Test / Run basic test suite (pull_request) Successful in 6m14s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 10m15s

This commit is contained in:
Thomas E Lackey 2024-03-05 05:40:15 +00:00
parent 64b395f15a
commit 7f0b82b9a9

View File

@ -350,9 +350,10 @@ class K8sDeployer(Deployer):
name=ingress.spec.tls[0].secret_name
)
hostname = ingress.spec.tls[0].hosts[0]
hostname = ingress.spec.rules[0].host
tls_hosts = ingress.spec.rules[0].host
ip = ingress.status.load_balancer.ingress[0].ip
tls = "notBefore: %s, notAfter: %s" % (cert["status"]["notBefore"], cert["status"]["notAfter"])
tls = "notBefore: %s, notAfter: %s, names: %s" % (cert["status"]["notBefore"], cert["status"]["notAfter"], ", ".join(ingress.spec.tls[0].hosts))
except: # noqa: E722
pass