Michael Cambria
74a2596573
Add check support for: bridge, ipvlan, macvlan, p2p, vlan and host-device main plugins
...
host-local and static ipam plugins
tuning, bandwidth and portmap meta plugins
Utility functions created for common PrevResult checking
Fix windows build
2019-04-03 13:08:07 -04:00
Casey Callendrello
9fab520c37
Portmap: append, rather than prepend, entry rules
...
This means that portmapped connections can be more easily controlled /
firewalled.
2019-03-18 14:03:13 -05:00
Nguyen Quang Huy
4bca3e76bf
Fix redundant import alias
...
Because these package names are short and they are unique, it can not conflict. So the import aliases that can be omitted and we should remove them.
2019-02-20 16:58:45 +07:00
Michael Cambria
ddbf22f7f9
Vendor github.com/containernetworking/cni libcni and pkg file needed for CHECK
...
Update plugins/tests to deal with changes made to this vendor'ed code
2018-11-05 16:35:03 -05:00
Michal Rostecki
f5f787057d
plugins/meta: Add missing error checks
...
Signed-off-by: Michal Rostecki <mrostecki@suse.de>
2018-09-20 11:06:50 +02:00
Dan Williams
7d329215b0
portmap: don't panic if listing a chain returns fewer lines than expected
2018-08-16 09:50:28 -05:00
Casey Callendrello
68b4efb405
plugins/* stub-out GET functions so plugins build with v0.7
2018-06-15 15:28:53 +02:00
Casey Callendrello
aade7b93ee
build: some small improvements; bump to go1.10
...
- bump to go 1.10
- Add a linker tag with the build version
- Remove fastbuild, go builds are cached now
- Use better ginkgo suite names
2018-04-12 16:59:51 +02:00
Casey Callendrello
a0eac8d7d9
pkg/ns: remove namespace creation (and move to testutils)
...
Namespace creation had an unergonomic interface and isn't used, except
for testing code. Remove it; downstream users should really be creating
their own namespaces
2018-04-03 18:56:25 +02:00
Casey Callendrello
5576f3120e
portmap: support hairpin, improve performance
...
This change improves the performance of the portmap plugin and fixes
hairpin, when a container is mapped back to itself.
Performance is improved by using a multiport test to reduce rule
traversal, and by using a masquerade mark.
Hairpin is fixed by enabling masquerading for hairpin traffic.
2017-11-10 16:56:52 +01:00
Gabriel Rosenhouse
d8f2fd7a3c
testing: move echosvr into testutils
2017-09-06 19:10:48 -07:00
Gabriel Rosenhouse
008024125a
portmap integration test: echo server runs in separate process
...
this way we're not mixing goroutines and namespaces
2017-09-05 23:36:12 -07:00
Casey Callendrello
3745ee2d3f
plugins/portmap: fix test flake
...
The source address selection was random, and sometimes we picked a
source address that the container didn't have a route to. Adding a
default route fixes that!
2017-07-06 16:12:24 +02:00
Dan Williams
0da6780449
pkg,plugins: update for Result struct Interface index changes
...
It's a pointer now, so we need to use the helper function to set
the field and also test for nil before accessing it.
2017-06-29 13:40:36 -05:00
Casey Callendrello
83ec9bb73f
portmap: Don't accept a port number of 0
...
This also adds more testing around configuration parsing.
2017-06-15 14:00:04 +02:00
Casey Callendrello
43a24515ee
build: some minor post-repo-split fixes; add fastbuild
2017-06-01 18:51:46 +02:00
Casey Callendrello
a7aaf0e377
plugins/meta/portmap: add an iptables-based host port mapping plugin
2017-06-01 10:06:28 +02:00