feat(apiserver): refactor the hooking mechanism for standalone apiserver (#93001)
It now uses a full build handler chain that can be passed from up top to `SetupConfig`. Co-authored-by: Charandas Batra <charandas.batra@grafana.com>
This commit is contained in:
committed by
GitHub
parent
a1a18922e5
commit
368c4e53f1
@@ -122,7 +122,7 @@ func (o *APIServerOptions) Config(tracer tracing.Tracer) (*genericapiserver.Reco
|
||||
setting.BuildVersion,
|
||||
setting.BuildCommit,
|
||||
setting.BuildBranch,
|
||||
o.factory.GetOptionalMiddlewares(tracer)...,
|
||||
o.factory.GetBuildHandlerChainFunc(tracer, o.builders),
|
||||
)
|
||||
return serverConfig, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user