We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea10a2 commit 2307db7Copy full SHA for 2307db7
pkg/cmd/crdconversionwebhook/cmd.go
@@ -1,6 +1,7 @@
1
package crdconversionwebhook
2
3
import (
4
+ "crypto/tls"
5
"fmt"
6
"net/http"
7
@@ -43,8 +44,9 @@ func startServer() {
43
44
http.HandleFunc("/readyz", func(w http.ResponseWriter, req *http.Request) { w.Write([]byte("ok")) })
45
clientset := getClient()
46
server := &http.Server{
- Addr: fmt.Sprintf(":%d", port),
47
- TLSConfig: configTLS(config, clientset),
+ Addr: fmt.Sprintf(":%d", port),
48
+ TLSConfig: configTLS(config, clientset),
49
+ TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler)), // disable HTTP/2
50
}
51
server.ListenAndServeTLS("", "")
52
0 commit comments