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
+2
View File
@@ -178,6 +178,8 @@ func InstallAPIs(
// this is needed to support setting a default RESTOptionsGetter for new APIs that don't
// support the legacy storage type.
var dualWrite grafanarest.DualWriteBuilder
// nolint:staticcheck
if storageOpts.StorageType != options.StorageTypeLegacy {
dualWrite = func(gr schema.GroupResource, legacy grafanarest.LegacyStorage, storage grafanarest.Storage) (grafanarest.Storage, error) {
key := gr.String() // ${resource}.{group} eg playlists.playlist.grafana.app