From 2064373da6aa3e97b5e6a5c48bd3c3600ceac78d Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Wed, 6 Mar 2024 15:18:48 -0600 Subject: [PATCH] fake --- stack_orchestrator/deploy/k8s/deploy_k8s.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/stack_orchestrator/deploy/k8s/deploy_k8s.py b/stack_orchestrator/deploy/k8s/deploy_k8s.py index 40e2041e..2aa7bd4b 100644 --- a/stack_orchestrator/deploy/k8s/deploy_k8s.py +++ b/stack_orchestrator/deploy/k8s/deploy_k8s.py @@ -170,18 +170,16 @@ class K8sDeployer(Deployer): print(f"{service_resp}") def _find_certificate_for_host_name(self, host_name): - def find_matching_certificate(self, host_name): - all_certificates = self.custom_obj_api.get_namespaced_custom_object( - group="cert-manager.io", - version="v1", - namespace=self.k8s_namespace, - plural="certificates" - ) - for cert in all_certificates: - print(cert) + all_certificates = self.custom_obj_api.get_namespaced_custom_object( + group="cert-manager.io", + version="v1", + namespace=self.k8s_namespace, + plural="certificates" + ) + for cert in all_certificates: + print(cert) def up(self, detach, services): - self._find_certificate_for_host_name("foo") if not opts.o.dry_run: if self.is_kind(): # Create the kind cluster @@ -335,6 +333,7 @@ class K8sDeployer(Deployer): def status(self): self.connect_api() + self._find_certificate_for_host_name("foo") # Call whatever API we need to get the running container list all_pods = self.core_api.list_pod_for_all_namespaces(watch=False) pods = []