Skip to content

Commit

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

[release-4.13] OCPBUGS-30599: Disable HTTP/2 for webhook
  • Loading branch information
openshift-merge-bot[bot] committed Mar 12, 2024
2 parents 6893553 + 1dc6397 commit b3dea84
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 b3dea84

Please sign in to comment.