Skip to content

Commit

Permalink
fix calls to GetListWithSpec
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Bertschy <[email protected]>
  • Loading branch information
matthyx committed Oct 1, 2024
1 parent 48b1209 commit 5bfa1ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/registry/file/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ func (s *StorageImpl) GetByNamespace(ctx context.Context, apiVersion, kind, name
span.SetAttributes(attribute.String("apiVersion", apiVersion), attribute.String("kind", kind), attribute.String("namespace", namespace))
defer span.End()

p := filepath.Join(s.root, apiVersion, kind, namespace)
p := filepath.Join(apiVersion, kind, namespace)

return s.GetListWithSpec(ctx, p, storage.ListOptions{}, listObj)
}
Expand All @@ -672,7 +672,7 @@ func (s *StorageImpl) GetByCluster(ctx context.Context, apiVersion, kind string,
ctx, span := otel.Tracer("").Start(ctx, "StorageImpl.GetClusterScopedResource")
defer span.End()

p := filepath.Join(s.root, apiVersion, kind)
p := filepath.Join(apiVersion, kind)

return s.GetListWithSpec(ctx, p, storage.ListOptions{}, listObj)
}
Expand Down

0 comments on commit 5bfa1ec

Please sign in to comment.