Revert "K8s: read resource configs from API Enablement for API Builders" (#114475)

Revert "K8s: read resource configs from API Enablement for API Builders (#114…"

This reverts commit 0c2707bbc4.
This commit is contained in:
Mustafa Sencer Özcan
2025-11-26 16:15:24 +01:00
committed by GitHub
parent 759d49a1df
commit 4130bd9cd3
5 changed files with 36 additions and 111 deletions
+4
View File
@@ -64,6 +64,10 @@ 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 {