From 7f0b82b9a9ee2edfcb0b51a996a2efdd3ec6cd83 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 5 Mar 2024 05:40:15 +0000 Subject: [PATCH] Update status cmd --- stack_orchestrator/deploy/k8s/deploy_k8s.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stack_orchestrator/deploy/k8s/deploy_k8s.py b/stack_orchestrator/deploy/k8s/deploy_k8s.py index a3855fee..28abf1f6 100644 --- a/stack_orchestrator/deploy/k8s/deploy_k8s.py +++ b/stack_orchestrator/deploy/k8s/deploy_k8s.py @@ -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