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

Kustomize Wasm Plugin #4944

Open
4 tasks
koba1t opened this issue Nov 4, 2024 · 3 comments
Open
4 tasks

Kustomize Wasm Plugin #4944

koba1t opened this issue Nov 4, 2024 · 3 comments
Labels
sig/cli Categorizes an issue or PR as relevant to SIG CLI.

Comments

@koba1t
Copy link
Member

koba1t commented Nov 4, 2024

Enhancement Description

Please keep this description up to date. This will help the Enhancement Team to track the evolution of the enhancement efficiently.

@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Nov 4, 2024
@koba1t
Copy link
Member Author

koba1t commented Nov 4, 2024

/sig cli

@k8s-ci-robot k8s-ci-robot added sig/cli Categorizes an issue or PR as relevant to SIG CLI. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Nov 4, 2024
@github-project-automation github-project-automation bot moved this to Needs Triage in SIG CLI Nov 4, 2024
@sanposhiho
Copy link
Member

It just caught my eye. I'm the maintainer of https://github.com/kubernetes-sigs/kube-scheduler-wasm-extension, happy to collaborate if needed.
I believe, compared to the scheduler, the performance requirement here is not that severe, and hence wasm could be a great option to try. Especially, given Golang just supported //go:wasiexport, it could be a good timing since you can seek Golang SDK from the first step. (otherwise you'd need to use TinyGo and make the wasm plugin SDK independent of k/k)

@koba1t
Copy link
Member Author

koba1t commented Nov 13, 2024

@sanposhiho
I would appreciate your advice!

Especially, given Golang just supported golang/go#65199, it could be a good timing since you can seek Golang SDK from the first step. (otherwise you'd need to use TinyGo and make the wasm plugin SDK independent of k/k)

Honest, This plugin framework will be in the form of a WASI binary call. This is because the current container/exec plugin uses stdin/stdout as an interface to kustomize, so we are trying to make it easier to migrate users by using stdin/stdout as input/output.

The PoC successfully got the golang code written for the existing exec plugin to work by simply rebuilding it with GOOS=wasip1 GOARCH=wasm.
https://github.com/koba1t/krm-fn-app/blob/a02b656109b48a7924df6d327d857c6746f9b306/Makefile#L8

@koba1t koba1t changed the title [WIP] Kustomize Wasm Plugin Kustomize Wasm Plugin Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/cli Categorizes an issue or PR as relevant to SIG CLI.
Projects
Status: Needs Triage
Development

No branches or pull requests

3 participants