Tom Denham
031567c216
pkg/types: Add UnmarshallableString type
...
Allow strings to be unmarshalled for CNI_ARGS
CNI_ARGS uses types.LoadArgs to populate a struct.
The fields in the struct must meet the TextUnmarshaler interface.
This code adds a UnmarshallableString type to assist with this.
2016-06-09 14:45:58 -07:00
Stefan Junker
c6864e1060
Merge pull request #229 from steveeJ/cleanup-travis
...
travis: cleanup and bump go versions
2016-06-02 20:43:11 +02:00
Minhan Xia
2445a960a9
plugins/ipam: round robin ip allocation for host-local ipam
...
This changes the ip allocation logic to round robin. Before this, host-local IPAM searched for available IPs from start of subnet. Hence it tends to allocate IPs that had been used recently. This is not ideal since it may cause collisions.
2016-06-02 20:37:05 +02:00
Tom Denham
5c3c171642
Merge pull request #239 from steveeJ/master
...
MAINTAINERS: remove @zachgersh, add @dcbw
v0.3.0
2016-06-02 09:00:07 -07:00
Michael Bridgen
4a292cd451
Merge pull request #218 from steveeJ/roadmap
...
Add ROADMAP document
2016-06-02 16:51:57 +01:00
Stefan Junker
f82af22b10
ROADMAP: initial version
2016-06-02 17:50:14 +02:00
Stefan Junker
4f9faf60bb
MAINTAINERS: remove @zachgersh, add @dcbw
...
Thank you Zach for all the great work done on CNI, farewell!
At the same time we are happy to welcome Dan amongst us who has already
contributed lots of valuable work!
2016-06-02 01:15:24 +02:00
Stefan Junker
f44f4cf953
Merge pull request #219 from squaremo/more-contrib
...
docs: details on PR acceptance policy
2016-06-01 16:03:17 +02:00
Michael Bridgen
ddc0ca4791
docs: details on PR acceptance policy
2016-06-01 12:23:21 +01:00
Michael Bridgen
e90d8c12b1
Merge pull request #228 from jieyu/add_mesos
...
Added Mesos to CNI users.
2016-05-30 11:13:34 +01:00
Stefan Junker
ffff8ac2fd
Merge pull request #231 from steveeJ/ns-verifiy-errors
...
pkg/ns: introduce error types to indicate NS verification
2016-05-27 15:57:40 +02:00
Stefan Junker
3a4124d257
pkg/ns: introduce error types indicate NS verification
2016-05-27 13:50:16 +02:00
Stefan Junker
35f3a090b2
pkg/ns: introduce error types indicate NS verification
v0.3.0-rc3
2016-05-27 13:50:16 +02:00
Stefan Junker
131ecc4055
Merge pull request #230 from steveeJ/netns-optional-on-del
...
plugins: don't require CNI_NETNS for DEL command
2016-05-27 13:49:05 +02:00
Stefan Junker
cfedcfd8f2
skel/test: add case for empty NETNS
2016-05-27 12:26:42 +02:00
Stefan Junker
d582c9ce8f
skel/test: add case for empty NETNS
2016-05-27 12:26:42 +02:00
Stefan Junker
5fe036b88a
plugins: don't require CNI_NETNS for DEL command
...
This will allow to free up the IPAM allocations when the caller doesn't
have access to the network namespace anymore, e.g. due to a reboot.
2016-05-27 10:57:39 +02:00
Stefan Junker
72337159c1
plugins: don't require CNI_NETNS for DEL command
...
This will allow to free up the IPAM allocations when the caller doesn't
have access to the network namespace anymore, e.g. due to a reboot.
2016-05-27 10:57:39 +02:00
Stefan Junker
d7de8d4f98
pkg/skel: allow arg requriements specified by CMD
2016-05-27 10:56:24 +02:00
Stefan Junker
7f90f9d559
pkg/skel: allow arg requriements specified by CMD
2016-05-27 10:56:24 +02:00
Jie Yu
d6674e0f49
README: add Mesos as CNI users
2016-05-26 09:42:10 -07:00
Stefan Junker
3b5d7a3bb0
travis: use go1.5.4
2016-05-26 15:33:58 +02:00
Stefan Junker
572fcc7076
travis: cleanup and bump go versions
...
* cleanup structure
* explicitly use go-{1.5.3,1.6.2}
2016-05-26 14:43:18 +02:00
Stefan Junker
6f63d9d707
Merge pull request #227 from steveeJ/ns-verify
...
pkg/ns: consider PROCFS during NS verification
v0.3.0-rc2
2016-05-26 13:22:29 +02:00
Stefan Junker
2d47b0396d
pkg/ns: consider PROCFS during NS verification
...
This is an attempt to bring compatibility with Kernel <3.19, where NSFS
where PROCFS was used for network namespaces.
2016-05-26 12:42:50 +02:00
Stefan Junker
3bab8a2805
pkg/ns: consider PROCFS during NS verification
...
This is an attempt to bring compatibility with Kernel <3.19, where NSFS
where PROCFS was used for network namespaces.
2016-05-26 12:42:50 +02:00
Stefan Junker
6fb30a6700
Merge pull request #222 from steveeJ/ns-check-path
...
pkg/ns: verify netns when initialized with GetNS
v0.3.0-rc1
2016-05-25 08:54:10 +02:00
Stefan Junker
ea073fc4c7
pkg/ns: test IsNSFS()
2016-05-24 22:30:49 +02:00
Stefan Junker
d6751cea24
pkg/ns: test IsNSFS()
2016-05-24 22:30:49 +02:00
Stefan Junker
f64cfb84f8
pkg/ns: test case for rejecting a non-ns nspath
2016-05-24 22:30:49 +02:00
Stefan Junker
c43ccc703a
pkg/ns: test case for rejecting a non-ns nspath
2016-05-24 22:30:49 +02:00
Stefan Junker
39eace3c38
pkg/ns: verify netns when initialized with GetNS
2016-05-24 22:30:49 +02:00
Stefan Junker
76ea259ff9
pkg/ns: verify netns when initialized with GetNS
2016-05-24 22:30:49 +02:00
Stefan Junker
c29cd52628
Merge pull request #223 from steveeJ/ns-respect-close
...
pkg/ns: don't allow operations after Close()
2016-05-24 22:16:09 +02:00
Stefan Junker
a8d1029294
pkg/ns: add tests cases for Close()'d NS
2016-05-24 21:15:51 +02:00
Stefan Junker
2de97b7e98
pkg/ns: add tests cases for Close()'d NS
2016-05-24 21:15:51 +02:00
Stefan Junker
40440ec887
pkg/ns: don't allow operations after Close()
2016-05-24 20:52:00 +02:00
Stefan Junker
b23895a7c7
pkg/ns: don't allow operations after Close()
2016-05-24 20:52:00 +02:00
Stefan Junker
984ef8117a
Merge pull request #217 from steveeJ/fix-go-tip
...
build: don't be verbose / test: fix bash variable escaping in sudo command
v0.3.0-rc0
2016-05-21 01:55:57 +02:00
Stefan Junker
54c0cd2cad
build: remove -x bash flag
2016-05-21 01:48:26 +02:00
Stefan Junker
232d7c095d
test: fix bash variable escaping in sudo command
2016-05-21 01:48:26 +02:00
Stefan Junker
20fa3d35e8
Merge pull request #50 from steveeJ/gwfix
...
bridge: add isDefaultGateway field
2016-05-21 01:34:21 +02:00
Stefan Junker
8afda5faed
tests/bridge: ensure isDefaultGateway works
2016-05-21 01:07:05 +02:00
Stefan Junker
8814631f80
bridge: add isDefaultGateway field
...
When isDefaultGateway is true it automatically sets isGateway to true.
The default route will be added via the (bridge's) gateway IP.
If a default gateway has been configured via IPAM in the same
configuration file, the plugin will error out.
2016-05-21 00:38:42 +02:00
Stefan Junker
534768fcd4
bridge: add isDefaultGateway field
...
When isDefaultGateway is true it automatically sets isGateway to true.
The default route will be added via the (bridge's) gateway IP.
If a default gateway has been configured via IPAM in the same
configuration file, the plugin will error out.
2016-05-21 00:38:42 +02:00
Stefan Junker
d30040f9f7
Merge pull request #211 from dcbw/e2e-testing
...
Fix namespace switch issues and add ipvlan, macvlan, and bridge e2e testing
2016-05-21 00:17:45 +02:00
Dan Williams
fce81fbf78
testutils: add e2e testing helper code
2016-05-20 17:10:25 -05:00
Dan Williams
ebf83ffde5
bridge: add e2e testing
2016-05-20 17:10:25 -05:00
Dan Williams
f2922c5c1f
ns: add interface, use it, and fix thread-related namespace switch issues
...
Add a namespace object interface for somewhat cleaner code when
creating and switching between network namespaces. All created
namespaces are now mounted in /var/run/netns to ensure they
have persistent inodes and paths that can be passed around
between plugin components without relying on the current namespace
being correct.
Also remove the thread-locking arguments from the ns package
per https://github.com/appc/cni/issues/183 by doing all the namespace
changes in a separate goroutine that locks/unlocks itself, instead of
the caller having to track OS thread locking.
2016-05-20 17:10:25 -05:00
Dan Williams
552dc43168
macvlan: add e2e testing
2016-05-20 17:10:25 -05:00