Add warning for plugin configs with unknown fields

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2023-09-25 16:05:41 -07:00
parent 0f3d312aca
commit 4c344f2fa5
5 changed files with 33 additions and 16 deletions

View File

@@ -96,7 +96,7 @@ func buildLocalContainerdClient(t *testing.T, tmpDir string) *containerd.Client
// load the plugin specific configuration if it is provided
if p.Config != nil {
pc, err := config.Decode(p)
pc, err := config.Decode(ctx, p)
assert.NoError(t, err)
initContext.Config = pc