fix(unified-storage): use continue token containing both formats for dualwriter (#106525)

This commit is contained in:
Jean-Philippe Quéméner
2025-06-13 15:59:46 +02:00
committed by GitHub
parent 8504f7ea90
commit 5f21f320f7
9 changed files with 355 additions and 33 deletions
+7
View File
@@ -492,6 +492,12 @@ func CreateGrafDir(t *testing.T, opts GrafanaOpts) (string, string) {
require.NoError(t, err)
}
}
if opts.UnifiedStorageMaxPageSizeBytes > 0 {
section, err := getOrCreateSection("unified_storage")
require.NoError(t, err)
_, err = section.NewKey("max_page_size_bytes", fmt.Sprintf("%d", opts.UnifiedStorageMaxPageSizeBytes))
require.NoError(t, err)
}
if opts.PermittedProvisioningPaths != "" {
_, err = pathsSect.NewKey("permitted_provisioning_paths", opts.PermittedProvisioningPaths)
require.NoError(t, err)
@@ -556,6 +562,7 @@ type GrafanaOpts struct {
QueryRetries int64
GrafanaComAPIURL string
UnifiedStorageConfig map[string]setting.UnifiedStorageConfig
UnifiedStorageMaxPageSizeBytes int
PermittedProvisioningPaths string
GrafanaComSSOAPIToken string
LicensePath string