Commit Graph

21 Commits

Author SHA1 Message Date
Markus Lehtonen 43e98eee13 Add minimal documentation for plugin images
Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
2025-08-15 10:01:51 +03:00
Krisztian Litkey 27523d0e8c
Merge pull request #204 from marquiz/devel/plugin-exit-code
plugins: consistent exit behavior on ttrpc close
2025-08-13 20:07:50 +03:00
Markus Lehtonen ced3ebee0c Bump dependencies
Update outdated deps.

Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
2025-08-13 11:31:27 +03:00
Markus Lehtonen 8429b178ef plugins: consistent exit behavior on ttrpc close
Make those sample plugins which have OnClose defined exit in a similar
fashion, with a log message and exit status 1. This is consistent with
the rest of the sample plugins which also exit with status 1 in this
case (but a different log output).

Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
2025-08-12 11:58:59 +03:00
Markus Lehtonen 782a7dcc40 readme: list all sample plugins
Also add minimal readme for the template and wasm plugins.

The default-validator plugin is left out as it cannot be built as an
external plugin (without changes).

Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
2025-08-07 21:44:10 +03:00
Sascha Grunert f6f8d03795
Drop tinygo requirement
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-07-02 12:29:32 +02:00
Krisztian Litkey 29270a7e7d
adaptation: rework equality checking in unit tests.
Rework equality checking for unit test results using go-cmp,
aiming for fewer kludges. Define a set of Strip() helpers to
reduce otherwise semantically equivalent adjustments/updates
to a unique canonical form and thus allowing equality checks
using go-cmp/cmp.Equal().

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2025-05-15 18:00:34 +03:00
Jin Dong e46bcf90fe Bump deps to tagged versions
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
2025-03-09 15:19:36 +00:00
Sascha Grunert 112fc36b19
Add WASM plugin support
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-12-06 09:16:41 +01:00
Krisztian Litkey 159f5754db
template: dump pod/container count in sync message.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-10-10 11:04:38 +03:00
Krisztian Litkey 693d64e256
go.{mod,sum}, plugins: update ttrpc and NRI deps.
Update ttrpc to get sender-side reject of oversized messages.
Although purely a cosmetic change, update sample plugins' NRI
dependecy to our latest tag.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-10-10 10:58:20 +03:00
Krisztian Litkey 65781492cc
go.{mod,sum}: bump golang requirement to 1.21.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-09-25 15:54:35 +03:00
Krisztian Litkey 442e812394
go.{mod,sum}: update to ginkgo v2.19.1.
Update ginkgo to v2.19.1. This should get us rid of the coverage
collection errors seen in CI.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-09-20 17:24:40 +03:00
Krisztian Litkey 5680921a7a
plugins/template: fix typo in a comment.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-07-10 17:17:52 +03:00
Krisztian Litkey a9778ad8bf
plugins: bump golang version to 1.20.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-06-06 20:18:05 +03:00
Sebastiaan van Stijn 02a1d5e234
go.mod: github.com/containerd/ttrpc v1.2.3
full diff: https://github.com/containerd/ttrpc/compare/baadfd8e7956...v1.2.3

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-02-06 10:29:46 +01:00
Krisztian Litkey 45b9e3f143
plugins: update dependencies.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2024-01-30 14:22:36 +02:00
Krisztian Litkey d042d24bc4 stub: fix plugin UpdateContainerInterface.
Fix UpdateContainer adding an argument for the updated resources.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2023-05-23 22:28:44 +03:00
Krisztian Litkey f5d0f51360 plugins: update plugins for stub changes.
Update plugin event handlers with the updated stub
interfaces.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2023-05-22 22:37:17 +03:00
Krisztian Litkey ebed16ae31 plugins: fix incorrect go.mod module paths.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2022-11-30 23:52:34 +02:00
Krisztian Litkey e59be048a7 plugins: added template plugin.
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
2022-11-22 22:14:39 +02:00