GO-2023-2355 : Knative Serving vulnerable to attacker-controlled pod causing denial of service of autoscaler in knative.dev/serving
Discover Packages
knative.dev/serving
pkg
queue
health
package
Version:
v0.5.1
Opens a new window with list of versions in this module.
Published: Apr 5, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 8 modules, 12 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
TCPProbe checks that a TCP socket to the address can be opened.
Did not reuse k8s.io/kubernetes/pkg/probe/tcp to not create a dependency
on klog.
State holds state about the current healthiness of the component.
func (*State) DrainHandler ¶
added in
v0.5.0
DrainHandler constructs a handler that waits until the proxy server is shut down.
HealthHandler constructs a handler that returns the current state of
the health server.
IsAlive returns whether or not the health server is in a known
working state currently.
IsShuttingDown returns whether or not the health server is currently
shutting down.
func (h *State ) Shutdown(drain func())
Shutdown marks the proxy server as no ready and begins its shutdown process. This
results in unblocking any connections waiting for drain.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.