test for proxy info
Some checks failed
Lint Checks / Run linter (pull_request) Has been cancelled
Deploy Test / Run deploy test suite (pull_request) Has been cancelled
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Has been cancelled
Webapp Test / Run webapp test suite (pull_request) Has been cancelled
Smoke Test / Run basic test suite (pull_request) Has been cancelled

This commit is contained in:
Thomas E Lackey 2024-03-06 17:41:15 -06:00
parent d8190d227c
commit 0910301fa3

View File

@ -223,7 +223,8 @@ class K8sDeployer(Deployer):
self._create_deployment()
use_tls = not self.is_kind()
certificate = self._find_certificate_for_host_name(self.cluster_info.spec.get_http_proxy()[0]["host-name"]) if use_tls else None
http_proxy_info = self.cluster_info.spec.get_http_proxy()
certificate = self._find_certificate_for_host_name(http_proxy_info[0]["host-name"]) if http_proxy_info and use_tls else None
if opts.o.debug:
if certificate:
print(f"Using existing certificate: {certificate}")