diff --git a/pkg/k8s/objectcache/objectcache_test.go b/pkg/k8s/objectcache/objectcache_test.go index 17f97278..5c2c9088 100644 --- a/pkg/k8s/objectcache/objectcache_test.go +++ b/pkg/k8s/objectcache/objectcache_test.go @@ -70,11 +70,15 @@ func TestGet(t *testing.T) { assert.NoError(cache.Init()) for i := 0; i < 2; i++ { - uns, err := cache.Get(context.Background(), utilobject.Rich{ - Cluster: "test-cluster", - GroupVersionResource: corev1.SchemeGroupVersion.WithResource("configmaps"), - Namespace: "default", - Name: "test-cm", + uns, err := cache.Get(context.Background(), utilobject.VersionedKey{ + Key: utilobject.Key{ + Cluster: "test-cluster", + Namespace: "default", + Name: "test-cm", + Group: corev1.GroupName, + Resource: "configmaps", + }, + Version: corev1.SchemeGroupVersion.Version, }) assert.NoError(err)