From 692efbd2a7756cfd0acbb4d4ae65a58e3c58d6b1 Mon Sep 17 00:00:00 2001 From: Casey Callendrello Date: Mon, 1 Jul 2024 17:29:06 +0200 Subject: [PATCH] libcni: set both GC valid attachment keys I made an (embarassing) error where SPEC.md and libcni disagreed on the key for valid attachments for a GC operation. The spec has been updated, but libcni should set both keys as a transition mechanism. Signed-off-by: Casey Callendrello --- libcni/api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcni/api.go b/libcni/api.go index de2dc622..201a12e9 100644 --- a/libcni/api.go +++ b/libcni/api.go @@ -817,6 +817,8 @@ func (c *CNIConfig) GCNetworkList(ctx context.Context, list *NetworkConfigList, } if args != nil { inject["cni.dev/valid-attachments"] = args.ValidAttachments + // #1101: spec used incorrect variable name + inject["cni.dev/attachments"] = args.ValidAttachments } for _, plugin := range list.Plugins {