Skip to content

Commit

Permalink
Fix function reference from e (#33271)
Browse files Browse the repository at this point in the history
  • Loading branch information
atburke committed Oct 10, 2023
1 parent d30c5fa commit 4f497c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/services/access_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -1820,6 +1820,11 @@ func GetResourceIDsByCluster(r types.AccessRequest) map[string][]types.ResourceI
return accessrequest.GetResourceIDsByCluster(r)
}

// TODO(atburke): Remove this once teleport.e reference is switched over
func GetResourcesByResourceIDs(ctx context.Context, lister client.ListResourcesClient, resourceIDs []types.ResourceID, opts ...accessrequest.ListResourcesRequestOption) ([]types.ResourceWithLabels, error) {
return accessrequest.GetResourcesByResourceIDs(ctx, lister, resourceIDs, opts...)
}

// resourceMatcherToMatcherSlice returns the resourceMatcher in a RoleMatcher slice
// if the resourceMatcher is not nil, otherwise returns a nil slice.
func resourceMatcherToMatcherSlice(resourceMatcher *KubeResourcesMatcher) []RoleMatcher {
Expand Down

0 comments on commit 4f497c8

Please sign in to comment.