Skip to content

Conversation

@saschagrunert
Copy link
Contributor

Just an inspiration how WASM support could work.

@klihub
Copy link
Member

klihub commented Nov 6, 2024

@saschagrunert Are you able to compile the wasm plugin on your system ? If yes, can you list the tinygo version and other relevant configuration that you are running with ?

@saschagrunert
Copy link
Contributor Author

@saschagrunert Are you able to compile the wasm plugin on your system ? If yes, can you list the tinygo version and other relevant configuration that you are running with ?

Yes it works, using:

> tinygo version
tinygo version 0.34.0 linux/amd64 (using go version go1.23.2 and LLVM version 18.1.8)

I still think knqyf263/go-plugin#67 is a main blocker on this, but there is hope that we can resolve this kind of issue soon.

@saschagrunert
Copy link
Contributor Author

Requires knqyf263/go-plugin#69

@saschagrunert saschagrunert force-pushed the wasm-support branch 12 times, most recently from c655cfc to 72d834f Compare November 22, 2024 10:33
@saschagrunert saschagrunert marked this pull request as ready for review November 22, 2024 10:33
@saschagrunert saschagrunert force-pushed the wasm-support branch 2 times, most recently from 3e4c1d7 to 50e60c0 Compare November 22, 2024 10:47
@saschagrunert
Copy link
Contributor Author

@klihub this is ready for review now.

Copy link
Member

@klihub klihub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saschagrunert This looks really good and I'd like to start playing around with it more. Thank you for taking the time and effort with this !

I have a small suggestion in the review comments which would allow folks to get the wasm plugin built using the tinygo docker image if their distro does not offer a new enough tinygo toolchain natively.

@askervin
Copy link
Contributor

@saschagrunert, looks very nice! Welcome Wasm plugins.

@saschagrunert saschagrunert force-pushed the wasm-support branch 5 times, most recently from 7ba58db to dd57194 Compare November 26, 2024 09:58
@klihub klihub requested a review from askervin November 26, 2024 11:37
Copy link
Contributor

@askervin askervin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you, @saschagrunert!

@klihub klihub self-requested a review November 26, 2024 14:02
@saschagrunert
Copy link
Contributor Author

@mikebrow are your around to give this a review?

Copy link
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice piece of work.. see comments :-)

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@saschagrunert
Copy link
Contributor Author

Updated the PR, thank you!

@klihub klihub requested a review from mikebrow December 11, 2024 08:26
Copy link
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mikebrow mikebrow merged commit d138684 into containerd:main Dec 11, 2024
8 checks passed
@mikebrow
Copy link
Member

TODO: note .. #121 (comment) need a new struct to formally support multiple plugin types

@saschagrunert saschagrunert deleted the wasm-support branch December 12, 2024 07:46
saschagrunert added a commit to saschagrunert/nri that referenced this pull request Dec 12, 2024
Follow-up on: containerd#121 (comment)

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@saschagrunert
Copy link
Contributor Author

TODO: note .. #121 (comment) need a new struct to formally support multiple plugin types

Yes: #125

saschagrunert added a commit to saschagrunert/nri that referenced this pull request Dec 12, 2024
Follow-up on: containerd#121 (comment)

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
saschagrunert added a commit to saschagrunert/nri that referenced this pull request Dec 12, 2024
Follow-up on: containerd#121 (comment)

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@dmcgowan dmcgowan added the area/nri Node Resource Interface (NRI) label Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/nri Node Resource Interface (NRI) impact/changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants