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 Put #5

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

Implement WASI Controller Put #5

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 Put function for the WASM/WASI Controller.

The role of this function is to invoke the put <kind> over the wasm binary for the provided FS mounted at root.

The controller needs to:

  1. Build a wazero execution environment with the target FS mounted at /
  2. Validate the proposed resource matches the desired resource definition schema
  3. Invoke the wasm binary with the arguments ["put", kind] and the desired resource marshalled on STDIN
func (*Controller) Put(context.Context, *PutRequest) error { /**/ }

Success

The Controller can adjust the state of the described target filesystem based on the new state of the request resource.

@GeorgeMac GeorgeMac mentioned this issue Jul 20, 2023
4 tasks
@GeorgeMac GeorgeMac changed the title Implement Executor Put Implement Controller Put Jul 20, 2023
@GeorgeMac GeorgeMac added this to the POC milestone Jul 21, 2023
@GeorgeMac GeorgeMac changed the title Implement Controller Put Implement WASM Controller Put Jul 23, 2023
@GeorgeMac GeorgeMac changed the title Implement WASM Controller Put Implement WASI Controller Put 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