diff --git a/webhook/webhook.go b/webhook/webhook.go index a8060427df..eff693e80d 100644 --- a/webhook/webhook.go +++ b/webhook/webhook.go @@ -256,6 +256,7 @@ func (wh *Webhook) Run(stop <-chan struct{}) error { QuietPeriod: wh.Options.GracePeriod, } + // If TLSNextProto is not nil, HTTP/2 support is not enabled automatically. nextProto := map[string]func(*http.Server, *tls.Conn, http.Handler){} if wh.Options.EnableHTTP2 { nextProto = nil