OFREP: add ST builder for the authorizer, APIEnabled=false needs it (#113809)

This commit is contained in:
Charandas
2025-11-13 09:19:16 -08:00
committed by GitHub
parent 3f48a6358f
commit 9ca6ad3b49
-4
View File
@@ -64,10 +64,6 @@ func NewAPIBuilder(providerType string, url *url.URL, insecure bool, caFile stri
}
func RegisterAPIService(apiregistration builder.APIRegistrar, cfg *setting.Cfg) (*APIBuilder, error) {
if !cfg.OpenFeature.APIEnabled {
return nil, nil
}
var staticEvaluator featuremgmt.StaticFlagEvaluator // No static evaluator needed for non-static provider
var err error
if cfg.OpenFeature.ProviderType == setting.StaticProviderType {