From d4a17550ca01572c6d71001e71e98b876ea4dbd4 Mon Sep 17 00:00:00 2001 From: Krzysztof Siedlecki Date: Thu, 30 Jul 2020 13:31:19 +0200 Subject: [PATCH] adding altName to e2e webhook cert --- vertical-pod-autoscaler/e2e/utils/certs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/vertical-pod-autoscaler/e2e/utils/certs.go b/vertical-pod-autoscaler/e2e/utils/certs.go index 1b8995d40f64..d57be1269104 100644 --- a/vertical-pod-autoscaler/e2e/utils/certs.go +++ b/vertical-pod-autoscaler/e2e/utils/certs.go @@ -65,6 +65,7 @@ func SetupWebhookCert(namespaceName string) *certContext { signedCert, err := utils.NewSignedCert( &cert.Config{ CommonName: WebhookServiceName + "." + namespaceName + ".svc", + AltNames: cert.AltNames{DNSNames: []string{WebhookServiceName + "." + namespaceName + ".svc"}}, Usages: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, }, key, signingCert, signingKey,