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 5dd89bcafd - Show all commits

View File

@ -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)