From 665a2fe9a1f80dc035700381868ae2d67a6d0dbe Mon Sep 17 00:00:00 2001 From: Iceber Gu Date: Wed, 19 Jun 2024 18:43:57 +0800 Subject: [PATCH] fix the memory version returned by storageconfig factory Signed-off-by: Iceber Gu --- pkg/storageconfig/storageconfig_factory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storageconfig/storageconfig_factory.go b/pkg/storageconfig/storageconfig_factory.go index 4462583bd..356e79bcc 100644 --- a/pkg/storageconfig/storageconfig_factory.go +++ b/pkg/storageconfig/storageconfig_factory.go @@ -96,7 +96,7 @@ func (g *StorageConfigFactory) NewLegacyResourceConfig(gr schema.GroupResource, if err != nil { return nil, err } - memoryVersion, err := g.legacyResourceEncodingConfig.InMemoryEncodingFor(chosenStorageResource) + memoryVersion, err := g.legacyResourceEncodingConfig.InMemoryEncodingFor(gr) if err != nil { return nil, err }