Skip to content

Commit 692efbd

Browse files
committed
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 <[email protected]>
1 parent 6a68851 commit 692efbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: libcni/api.go

+2
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,8 @@ func (c *CNIConfig) GCNetworkList(ctx context.Context, list *NetworkConfigList,
817817
}
818818
if args != nil {
819819
inject["cni.dev/valid-attachments"] = args.ValidAttachments
820+
// #1101: spec used incorrect variable name
821+
inject["cni.dev/attachments"] = args.ValidAttachments
820822
}
821823

822824
for _, plugin := range list.Plugins {

0 commit comments

Comments
 (0)