This commit is contained in:
Thomas E Lackey 2024-03-06 15:18:48 -06:00
parent d7574474e3
commit 2064373da6

View File

@ -170,7 +170,6 @@ class K8sDeployer(Deployer):
print(f"{service_resp}") print(f"{service_resp}")
def _find_certificate_for_host_name(self, host_name): 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( all_certificates = self.custom_obj_api.get_namespaced_custom_object(
group="cert-manager.io", group="cert-manager.io",
version="v1", version="v1",
@ -181,7 +180,6 @@ class K8sDeployer(Deployer):
print(cert) print(cert)
def up(self, detach, services): def up(self, detach, services):
self._find_certificate_for_host_name("foo")
if not opts.o.dry_run: if not opts.o.dry_run:
if self.is_kind(): if self.is_kind():
# Create the kind cluster # Create the kind cluster
@ -335,6 +333,7 @@ class K8sDeployer(Deployer):
def status(self): def status(self):
self.connect_api() self.connect_api()
self._find_certificate_for_host_name("foo")
# Call whatever API we need to get the running container list # Call whatever API we need to get the running container list
all_pods = self.core_api.list_pod_for_all_namespaces(watch=False) all_pods = self.core_api.list_pod_for_all_namespaces(watch=False)
pods = [] pods = []