K8s: Fix legacy dashboard folder check (#102660)

This commit is contained in:
Stephanie Hingtgen
2025-03-22 06:22:59 +03:00
committed by GitHub
parent 1b1f626edd
commit 4d79d5e80c
@@ -39,6 +39,10 @@ func (s *DashboardStorage) NewStore(dash utils.ResourceInfo, scheme *runtime.Sch
optsGetter := apistore.NewRESTOptionsGetterForClient(client,
defaultOpts.StorageConfig.Config,
)
optsGetter.RegisterOptions(dash.GroupResource(), apistore.StorageOptions{
EnableFolderSupport: true,
RequireDeprecatedInternalID: true,
})
store, err := grafanaregistry.NewRegistryStore(scheme, dash, optsGetter)
return &storeWrapper{