Simplify open feature setup (#107632)

* Simplify open feature setup

* Fix linter issues

* Apply review feedback

* Fix integration tests setup
This commit is contained in:
Tania
2025-07-14 16:22:04 +02:00
committed by GitHub
parent d1f785c8bf
commit e079cb3738
11 changed files with 79 additions and 101 deletions
+6
View File
@@ -11,6 +11,7 @@ import (
"strconv"
"sync"
"github.com/grafana/grafana/pkg/services/featuremgmt"
"golang.org/x/sync/errgroup"
"github.com/prometheus/client_golang/prometheus"
@@ -131,6 +132,11 @@ func (s *Server) Init() error {
return err
}
// Initialize the OpenFeature feature flag system
if err := featuremgmt.InitOpenFeatureWithCfg(s.cfg); err != nil {
return err
}
return s.provisioningService.RunInitProvisioners(s.context)
}