feat(unified-storage): prune history table based on limits (#101970)

This commit is contained in:
Jean-Philippe Quéméner
2025-03-17 11:36:38 +01:00
committed by GitHub
parent cacdf00067
commit 1700a8aa9f
15 changed files with 282 additions and 8 deletions
+15
View File
@@ -255,6 +255,21 @@ func TestUnifiedStorageQueries(t *testing.T) {
},
},
sqlResourceHistoryPrune: {
{
Name: "simple",
Data: &sqlPruneHistoryRequest{
SQLTemplate: mocks.NewTestingSQLTemplate(),
Key: &resource.ResourceKey{
Namespace: "nn",
Group: "gg",
Resource: "rr",
},
HistoryLimit: 100,
},
},
},
sqlResourceVersionGet: {
{
Name: "single path",