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

Implement WASI Controller List #4

Closed
GeorgeMac opened this issue Jul 20, 2023 · 0 comments · Fixed by #23
Closed

Implement WASI Controller List #4

GeorgeMac opened this issue Jul 20, 2023 · 0 comments · Fixed by #23
Milestone

Comments

@GeorgeMac
Copy link
Contributor

GeorgeMac commented Jul 20, 2023

Supports #2

This issue tracks implementing the List function for the WASM/WASI Controller.

The role of this function is to list multiple instances of a resources by namespace and optional label key/pairs.

The controller needs to:

  1. Build a wazero execution environment with the target FSConfig mounted at /
  2. Invoke the wasm binary with the arguments ["list", kind, namespace, ...(k/v pairs)]
  3. Parse the response as a []*cup.Resource and return them
func (*Controller) List(context.Context, *ListRequest) ([]*cup.Resource, error) { /**/ }

Success

The Controler can list and filter multiple resources for a given namespace

@GeorgeMac GeorgeMac mentioned this issue Jul 20, 2023
4 tasks
@GeorgeMac GeorgeMac changed the title Implement Executor List Implement Controller List Jul 20, 2023
@GeorgeMac GeorgeMac added this to the POC milestone Jul 21, 2023
@GeorgeMac GeorgeMac changed the title Implement Controller List Implement WASI Controller List Jul 23, 2023
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 a pull request may close this issue.

1 participant