Skip to content

Commit

Permalink
adding altName to e2e webhook cert
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysied committed Jul 30, 2020
1 parent d2afd1c commit d4a1755
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vertical-pod-autoscaler/e2e/utils/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d4a1755

Please sign in to comment.