host-local: allow ip request via CNI_ARGS
authorStefan Junker <mail@stefanjunker.de>
Sun, 16 Aug 2015 00:30:04 +0000 (02:30 +0200)
committerStefan Junker <mail@stefanjunker.de>
Thu, 3 Sep 2015 23:38:22 +0000 (01:38 +0200)
commit1d398af124a20387d21714a2792c435cdd347f10
tree468347becb6977c4d26a3897f5a51d79d34c1a99
parent59f58fb974f4cee94c2db0e201c37a8f1ab12137
host-local: allow ip request via CNI_ARGS

A specific IP can now be requested via the environment variable CNI_ARGS, e.g.
`CNI_ARGS=ip=1.2.3.4`.
The plugin will try to reserve the specified IP.
If this is not successful the execution will fail.
Documentation/host-local.md
pkg/plugin/args.go [new file with mode: 0644]
plugins/ipam/host-local/allocator.go
plugins/ipam/host-local/config.go
plugins/ipam/host-local/main.go