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 }