Auto-detect which certificate to use (including wildcards). #779

Merged
telackey merged 9 commits from telackey/wild2 into main 2024-03-07 17:38:38 +00:00
Showing only changes of commit d7574474e3 - Show all commits

View File

@ -169,7 +169,19 @@ class K8sDeployer(Deployer):
print("Service created:")
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)
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