Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(serializer runtime.NegotiatedSerializer, isMuxAndDiscoveryCompleteFn func(ctx context.Context) bool) *Handler
New returns an HTTP handler that is meant to be executed at the end of the delegation chain. It checks if the request have been made before the server has installed all known HTTP paths. In that case it returns a 503 response otherwise it returns a 404.
Note that we don't want to add additional checks to the readyz path as it might prevent fixing bricked clusters. This specific handler is meant to "protect" requests that arrive before the paths and handlers are fully initialized.
Click to show internal directories.
Click to hide internal directories.