K8s: read resource configs from API Enablement for API Builders (#114329)

This commit is contained in:
Charandas
2025-11-24 11:09:49 -08:00
committed by GitHub
parent f1dbbcbe00
commit 0c2707bbc4
5 changed files with 111 additions and 36 deletions
-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 {