Provisioning: ignore the grafanaAPIServerWithExperimentalAPIs flag (#103761)

This commit is contained in:
Ryan McKinley
2025-04-10 10:55:19 +03:00
committed by GitHub
parent 8167edc6e5
commit 236212aabb
+2 -3
View File
@@ -167,9 +167,8 @@ func RegisterAPIService(
// FIXME: use multi-tenant service when one exists. In this state, we can't make this a multi-tenant service!
secretsSvc grafanasecrets.Service,
) (*APIBuilder, error) {
if !features.IsEnabledGlobally(featuremgmt.FlagProvisioning) &&
!features.IsEnabledGlobally(featuremgmt.FlagGrafanaAPIServerWithExperimentalAPIs) {
return nil, nil // skip registration unless opting into experimental apis OR the feature specifically
if !features.IsEnabledGlobally(featuremgmt.FlagProvisioning) {
return nil, nil
}
folderResolver := &repository.LocalFolderResolver{