Skip to content

Commit

Permalink
Merge pull request #803 from openshift-cherrypick-robot/cherry-pick-8…
Browse files Browse the repository at this point in the history
…02-to-release-4.14

[release-4.14] OCPBUGS-22274: Disable HTTP/2 for webhook
  • Loading branch information
openshift-ci[bot] committed Nov 2, 2023
2 parents 5479810 + ff6c98b commit 966e915
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/cmd/crdconversionwebhook/cmd.go
@@ -1,6 +1,7 @@
package crdconversionwebhook

import (
"crypto/tls"
"fmt"
"net/http"

Expand Down Expand Up @@ -43,8 +44,9 @@ func startServer() {
http.HandleFunc("/readyz", func(w http.ResponseWriter, req *http.Request) { w.Write([]byte("ok")) })
clientset := getClient()
server := &http.Server{
Addr: fmt.Sprintf(":%d", port),
TLSConfig: configTLS(config, clientset),
Addr: fmt.Sprintf(":%d", port),
TLSConfig: configTLS(config, clientset),
TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler)), // disable HTTP/2
}
server.ListenAndServeTLS("", "")
}

0 comments on commit 966e915

Please sign in to comment.