UPSTREAM: <drop>: fix messed up a CRD CVE patch
@@ -182,15 +182,12 @@ func NewCustomResourceDefinitionHandler(
// possiblyAcrossAllNamespacesVerbs contains those verbs which can be per-namespace and across all
// namespaces for namespaces resources. I.e. for these an empty namespace in the requestInfo is fine.
var possiblyAcrossAllNamespacesVerbs = sets.NewString("list", "watch")
+
// watches are expected to handle storage disruption gracefully,
// both on the server-side (by terminating the watch connection)
// and on the client side (by restarting the watch)
var longRunningFilter = genericfilters.BasicLongRunningRequestCheck(sets.NewString("watch"), sets.NewString())
-// possiblyAcrossAllNamespacesVerbs contains those verbs which can be per-namespace and across all
-// namespaces for namespaces resources. I.e. for these an empty namespace in the requestInfo is fine.
-var possiblyAcrossAllNamespacesVerbs = sets.NewString("list", "watch")
-
func (r *crdHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
ctx := req.Context()
requestInfo, ok := apirequest.RequestInfoFrom(ctx)
