Fix function reference from e (#33271)

This commit is contained in:
Andrew Burke 2023-10-10 15:24:47 -07:00 committed by GitHub
parent d30c5fa646
commit 4f497c8134
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {