flannel: set the cniVersion on the delegated config

Fixes: #23
This commit is contained in:
Casey Callendrello
2017-06-16 19:04:07 +02:00
parent 5bbff37294
commit 8c5e754617
2 changed files with 9 additions and 1 deletions

View File

@ -224,6 +224,9 @@ func cmdAdd(args *skel.CmdArgs) error {
n.Delegate["isGateway"] = true
}
}
if n.CNIVersion != "" {
n.Delegate["cniVersion"] = n.CNIVersion
}
n.Delegate["ipam"] = map[string]interface{}{
"type": "host-local",