Skip to content

Commit

Permalink
update cni to 1.2.0 (projectcalico#8839)
Browse files Browse the repository at this point in the history
Signed-off-by: scyda <scyda@outlook.com>
  • Loading branch information
scydas authored and coutinhop committed Jul 18, 2024
1 parent 95d5f47 commit fef4e4e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion cni-plugin/pkg/ipamplugin/ipam_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ func Main(version string) {
os.Exit(0)
}

skel.PluginMain(cmdAdd, nil, cmdDel,
funcs := skel.CNIFuncs{
Add: cmdAdd,
Check: nil,
Del: cmdDel,
}

skel.PluginMainFuncs(funcs,
cniSpecVersion.PluginSupports("0.1.0", "0.2.0", "0.3.0", "0.3.1", "0.4.0", "1.0.0"),
"Calico CNI IPAM "+version)
}
Expand Down
7 changes: 6 additions & 1 deletion cni-plugin/pkg/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,12 @@ func Main(version string) {
os.Exit(1)
}

skel.PluginMain(cmdAdd, cmdDummyCheck, cmdDel,
funcs := skel.CNIFuncs{
Add: cmdAdd,
Del: cmdDel,
Check: cmdDummyCheck,
}
skel.PluginMainFuncs(funcs,
cniSpecVersion.PluginSupports("0.1.0", "0.2.0", "0.3.0", "0.3.1", "0.4.0", "1.0.0"),
"Calico CNI plugin "+version)
}

0 comments on commit fef4e4e

Please sign in to comment.