flipt-io / cup

Git Contribution Automation
https://cup.flipt.io
Apache License 2.0
76 stars 1 forks source link

Implement WASI Controller Delete #6

Closed GeorgeMac closed 1 year ago

GeorgeMac commented 1 year ago

Supports #2

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

The role of this function is to support invoking the delete target on the underlying wasm binary for the request resource.

The controller needs to:

  1. Build a wazero execution environment with the target FS mounted at /
  2. Invoke the wasm binary with the arguments ["delete", kind, namespace, name]
func (*Controller) Delete(context.Context, *DeleteRequest) error { /**/ }

Success

The Controller can delete existing resources from the target FS represented by the FSConfig