Skip to content

Commit

Permalink
s/PluginMain/PluginMainFuncs
Browse files Browse the repository at this point in the history
  • Loading branch information
alpeb committed Jun 12, 2024
1 parent 245decd commit b6d932d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cni-plugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,15 @@ type PluginConf struct {
func main() {
// Must log to Stderr because the CNI runtime uses Stdout as its state
logrus.SetOutput(os.Stderr)
skel.PluginMain(cmdAdd, cmdCheck, cmdDel, version.All, "")
skel.PluginMainFuncs(
skel.CNIFuncs{
Add: cmdAdd,
Check: cmdCheck,
Del: cmdDel,
},
version.All,
"",
)
}

func configureLoggingLevel(logLevel string) {
Expand Down

0 comments on commit b6d932d

Please sign in to comment.