mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
K8s: Add Aggregation to Backend Service (#81591)
Co-authored-by: Charandas Batra <charandas.batra@grafana.com>
This commit is contained in:
@@ -26,6 +26,10 @@ func NewServiceAPIBuilder() *ServiceAPIBuilder {
|
||||
}
|
||||
|
||||
func RegisterAPIService(features featuremgmt.FeatureToggles, apiregistration builder.APIRegistrar) *ServiceAPIBuilder {
|
||||
if !features.IsEnabledGlobally(featuremgmt.FlagKubernetesAggregator) {
|
||||
return nil // skip registration unless opting into aggregator mode
|
||||
}
|
||||
|
||||
builder := NewServiceAPIBuilder()
|
||||
apiregistration.RegisterAPI(NewServiceAPIBuilder())
|
||||
return builder
|
||||
|
||||
Reference in New Issue
Block a user