diff --git a/pkg/util/webhook/webhook_test.go b/pkg/util/webhook/webhook_test.go index d2019849e..475c7e3cf 100644 --- a/pkg/util/webhook/webhook_test.go +++ b/pkg/util/webhook/webhook_test.go @@ -197,7 +197,7 @@ MIIDGTCCAgGgAwIBAgIUOS2M }, }, user: &defaultUser, - errRegex: "unable to load root certificates: failed to parse certificate: asn1: syntax error: data truncated", + errRegex: "unable to load root certificates: failed to parse certificate: (asn1: syntax error: data truncated|x509: malformed certificate)", }, { test: "user with invalid client certificate path",