K8s/Storage: Deprecate StorageTypeLegacy (#98096)

This commit is contained in:
Ryan McKinley
2024-12-17 17:00:35 +03:00
committed by GitHub
parent 8188d623c8
commit a01878332a
6 changed files with 18 additions and 9 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func ProvideUnifiedStorageClient(
// See: apiserver.ApplyGrafanaConfig(cfg, features, o)
apiserverCfg := cfg.SectionWithEnvOverrides("grafana-apiserver")
client, err := newClient(options.StorageOptions{
StorageType: options.StorageType(apiserverCfg.Key("storage_type").MustString(string(options.StorageTypeLegacy))),
StorageType: options.StorageType(apiserverCfg.Key("storage_type").MustString(string(options.StorageTypeUnified))),
DataPath: apiserverCfg.Key("storage_path").MustString(filepath.Join(cfg.DataPath, "grafana-apiserver")),
Address: apiserverCfg.Key("address").MustString(""), // client address
BlobStoreURL: apiserverCfg.Key("blob_url").MustString(""),