Documentation ¶
Index ¶
- func BuildHandlerChain(apiHandler http.Handler, authorizationInfo *apiserver.AuthorizationInfo, ...) http.Handler
- func IsControllerEnabled(name string, disabledByDefaultControllers sets.String, controllers []string) bool
- func NewBaseHandler(c *componentbaseconfig.DebuggingConfiguration, checks ...healthz.HealthChecker) *mux.PathRecorderMux
- func WaitForAPIServer(client clientset.Interface, timeout time.Duration) error
- type ControllerContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHandlerChain ¶
func BuildHandlerChain(apiHandler http.Handler, authorizationInfo *apiserver.AuthorizationInfo, authenticationInfo *apiserver.AuthenticationInfo) http.Handler
BuildHandlerChain builds a handler chain with a base handler and CompletedConfig.
func IsControllerEnabled ¶
func IsControllerEnabled(name string, disabledByDefaultControllers sets.String, controllers []string) bool
IsControllerEnabled check if a specified controller enabled or not.
func NewBaseHandler ¶
func NewBaseHandler(c *componentbaseconfig.DebuggingConfiguration, checks ...healthz.HealthChecker) *mux.PathRecorderMux
NewBaseHandler takes in CompletedConfig and returns a handler.
Types ¶
type ControllerContext ¶
type ControllerContext struct { // ClientBuilder will provide a client for this controller to use ClientBuilder clientbuilder.ControllerClientBuilder // InformerFactory gives access to informers for the controller. InformerFactory informers.SharedInformerFactory // ObjectOrMetadataInformerFactory gives access to informers for typed resources // and dynamic resources by their metadata. All generic controllers currently use // object metadata - if a future controller needs access to the full object this // would become GenericInformerFactory and take a dynamic client. ObjectOrMetadataInformerFactory informerfactory.InformerFactory // DeferredDiscoveryRESTMapper is a RESTMapper that will defer // initialization of the RESTMapper until the first mapping is // requested. RESTMapper *restmapper.DeferredDiscoveryRESTMapper // AvailableResources is a map listing currently available resources AvailableResources map[schema.GroupVersionResource]bool // Stop is the stop channel Stop <-chan struct{} // InformersStarted is closed after all of the controllers have been initialized and are running. After this point it is safe, // for an individual controller to start the shared informers. Before it is closed, they should not. InformersStarted chan struct{} // ResyncPeriod generates a duration each time it is invoked; this is so that // multiple controllers don't get into lock-step and all hammer the apiserver // with list requests simultaneously. ResyncPeriod func() time.Duration }
ControllerContext defines the context object for controller
Click to show internal directories.
Click to hide internal directories.