Documentation
¶
Index ¶
Constants ¶
View Source
const (
ReadinessGateOnline = "kapacitystack.io/online"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // On turns on the specified pods' traffic. On(context.Context, []*corev1.Pod) error // Off turns off the specified pods' traffic. Off(context.Context, []*corev1.Pod) error }
Controller provide methods to control pod traffic.
type ReadinessGate ¶
ReadinessGate controls pod traffic by setting a specific readiness gate to make the pod ready/unready so that it would be automatically added to/removed from the endpoints of Kubernetes services.
Click to show internal directories.
Click to hide internal directories.