Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime: Support path filter in ListResources #4651

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

begelundmuller
Copy link
Contributor

@begelundmuller begelundmuller commented Apr 18, 2024

Adds support for optionally passing a path filter to ListResources. If provided, it will only return resources created from a file matching the path.

This is implemented in ListResources since we support creating multiple resources from a single file (though that feature is not currently used).

The new request signature is:

message ListResourcesRequest {
  // Instance to list resources from.
  string instance_id = 1;
  // Filter by resource kind (optional).
  string kind = 2;
  // Filter by resource path (optional).
  string path = 3;
}

@begelundmuller begelundmuller merged commit 3837d70 into main Apr 19, 2024
9 checks passed
@begelundmuller begelundmuller deleted the begelundmuller/list-resources-by-path branch April 19, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants