FeatureFlags: Remove the unsupported/undocumented option to read flags from a file (#79959)

This commit is contained in:
Ryan McKinley
2024-01-16 13:18:25 -08:00
committed by GitHub
parent 68d4e8a930
commit 48a5c1e850
6 changed files with 1 additions and 139 deletions

View File

@@ -1,9 +1,6 @@
package featuremgmt
import (
"os"
"path/filepath"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
@@ -59,17 +56,6 @@ func ProvideManagerService(cfg *setting.Cfg, licensing licensing.Licensing) (*Fe
mgmt.startup[key] = val
}
// Load config settings
configfile := filepath.Join(cfg.HomePath, "conf", "features.yaml")
if _, err := os.Stat(configfile); err == nil {
mgmt.log.Info("[experimental] loading features from config file", "path", configfile)
mgmt.config = configfile
err = mgmt.readFile()
if err != nil {
return mgmt, err
}
}
// update the values
mgmt.update()