You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
klog.ErrorS(err, "error fetching ip and port of remote server while proxying")
169
-
responsewriters.ErrorNegotiated(apierrors.NewServiceUnavailable("Error getting ip and port info of the remote server while proxying"), h.serializer, gv, w, r)
170
-
return
171
-
}
172
-
173
-
// no apiservers were found that could serve the request, pass request to
174
-
// next handler, that should eventually serve 404
165
+
// no peer endpoints found could mean one of the following things:
166
+
// 1. apiservers were found in storage version informer but either they had no endpoint
167
+
// lease or their endpoint lease had invalid hostport information. Serve 503 in this case.
168
+
// 2. no apiservers were found in storage version informer cache meaning
169
+
// this resource is not served by anything in this cluster. Pass request to
170
+
// next handler, that should eventually serve 404.
175
171
176
172
// TODO: maintain locally serviceable GVRs somewhere so that we dont have to
177
173
// consult the storageversion-informed map for those
klog.ErrorS(err, "error fetching ip and port of remote server while proxying")
179
+
responsewriters.ErrorNegotiated(apierrors.NewServiceUnavailable("Error getting ip and port info of the remote server while proxying"), h.serializer, gv, w, r)
180
+
return
181
+
}
182
+
179
183
klog.Errorf(fmt.Sprintf("GVR %v is not served by anything in this cluster", gvr))
0 commit comments