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,