Documentation
¶
Overview ¶
Package api defines a set of Handlers to be used for implementing a fake API server, designed specifically to make Cluster API and the Kubeadm Control Plane provider happy during a stress test (it is not complete or production ready, and it will never be).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIServerHandler ¶
func NewAPIServerHandler(manager cmanager.Manager, log logr.Logger, resolver ResourceGroupResolver) http.Handler
NewAPIServerHandler returns an http.Handler for a fake API server.
func NewDebugHandler ¶
func NewDebugHandler(manager cmanager.Manager, log logr.Logger, infoProvider DebugInfoProvider) http.Handler
NewDebugHandler returns an http.Handler for debugging the server.
Types ¶
type DebugInfoProvider ¶
DebugInfoProvider defines the methods the server must implement to provide debug info.
type ResourceGroupResolver ¶
ResourceGroupResolver defines a func that can identify which workloadCluster/resourceGroup a request targets.
Directories
¶
Path | Synopsis |
---|---|
Package portforward implements support for implementing a fake port forward service in the api.
|
Package portforward implements support for implementing a fake port forward service in the api. |
Click to show internal directories.
Click to hide internal directories.