K8s: Add APIGroupPostStartHookProvider (#97801)

This commit is contained in:
Todd Treece
2024-12-11 19:13:42 +02:00
committed by GitHub
parent 5d326b90ac
commit c5e8e71ee3
3 changed files with 141 additions and 0 deletions
+5
View File
@@ -62,6 +62,11 @@ type APIGroupRouteProvider interface {
GetAPIRoutes() *APIRoutes
}
type APIGroupPostStartHookProvider interface {
// GetPostStartHooks returns a list of functions that will be called after the server has started
GetPostStartHooks() (map[string]genericapiserver.PostStartHookFunc, error)
}
type APIGroupOptions struct {
Scheme *runtime.Scheme
OptsGetter generic.RESTOptionsGetter