From 5dd89bcafdb82711c34761fc0bf7f7aee6beda90 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Wed, 6 Mar 2024 17:25:00 -0600 Subject: [PATCH] debug --- stack_orchestrator/deploy/k8s/deploy_k8s.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stack_orchestrator/deploy/k8s/deploy_k8s.py b/stack_orchestrator/deploy/k8s/deploy_k8s.py index 63fcee1b..acf27f3e 100644 --- a/stack_orchestrator/deploy/k8s/deploy_k8s.py +++ b/stack_orchestrator/deploy/k8s/deploy_k8s.py @@ -224,6 +224,9 @@ class K8sDeployer(Deployer): use_tls = not self.is_kind() certificate = self._find_certificate_for_host_name(self.spec.get_http_proxy()[0]["host-name"]) if use_tls else None + if opts.o.debug: + if certificate: + print(f"Using existing certificate: {certificate}") # Note: at present we don't support tls for kind (and enabling tls causes errors) ingress: client.V1Ingress = self.cluster_info.get_ingress(use_tls=use_tls, certificate=certificate)