Dan Williams
9b86f52791
Merge pull request #200 from s1061123/fix/tuning-doc
...
Add description for mac/mtu/promisc in tuning README.md
2018-09-24 20:53:38 -05:00
Dan Williams
8a579a7fbc
Merge pull request #204 from mrostecki/always-check-err
...
Add missing error checks
2018-09-24 20:52:38 -05:00
MaiWJ
b56ca2fe45
Windows Support
...
Patch for https://github.com/containernetworking/plugins/pull/85
+ Windows cni plugins are added
(*) win-bridge (hostgw)
(*) win-overlay (vxlan)
+ Windows netconf unit test
+ Fix appveyor config to run the test
+ Build release support for windows plugins
Address comments
From:
- https://github.com/containernetworking/plugins/pull/85
- 0049c64e3f
2018-09-21 00:34:07 +08:00
Tomofumi Hayashi
93178bf026
Fix typo.
2018-09-20 22:18:15 +09: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
Tomofumi Hayashi
d22e75316f
Incorporate comments in PR.
2018-09-13 01:49:47 +09:00
Dan Williams
35b87a34db
Merge pull request #191 from dcbw/portmap-panic-fix
...
portmap: don't panic if listing a chain returns fewer lines than exected
2018-09-05 10:09:02 -05:00
Tomofumi Hayashi
9048a61dda
Add description for mac/mtu/promisc in tuning README.md
...
This diff adds documents for #177 change (mac/mtu/promisc) in tuning
README.md. Fixes #199 .
2018-09-05 16:01:24 +09: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
Dong Jun
220499db6b
Correct the bandwidth unit in description
...
Replace Kbps with bps and Kb with bits in bandwidth description.
2018-08-15 19:26:13 +08:00
Tomofumi Hayashi
9425d24c28
Incorporate @jelloneck/@bboreham/@squeed's comments.
2018-08-09 22:28:12 +09:00
Tomofumi Hayashi
635cb22f12
Merge remote-tracking branch 'origin/master' into tuninig-iplink
2018-08-09 21:43:33 +09:00
Tomofumi Hayashi
3a7f254a63
Introduce iplink(MTU MAC and promiscas) feature into tuning
...
This change adds 'ip link' command related feature into tuning
meta cni plugin. Currently MTU, MAC and promiscas mode are
supported.
2018-07-31 12:54:15 +09:00
Ye Yin
7571169160
Fix tc-tbf burst value in bytes.
2018-07-03 18:36:49 +08:00
Casey Callendrello
68b4efb405
plugins/* stub-out GET functions so plugins build with v0.7
2018-06-15 15:28:53 +02:00
Dan Williams
731298003c
plugins/testutils: pass CNI_CONTAINERID to plugins in testcases
...
Recent CNI specification changes require the container ID on ADD/DEL,
which the testcases were not providing. Fix that up so things work
when this repo gets CNI revendored.
2018-04-26 11:24:30 -05:00
Dan Williams
1df359a210
Merge pull request #144 from squeed/build-fixes
...
build: some small improvements; bump to go1.10
2018-04-25 10:41:32 -05:00
Casey Callendrello
adba9ec16e
Merge pull request #138 from m1093782566/runtime-config
...
traffic shaping: take configuration via a runtimeConfig
2018-04-25 17:09:41 +02:00
Lion-Wei
4a0971bcd8
update integration test configlist
2018-04-19 10:08:25 +08:00
m1093782566
7cf02869ec
traffic shaping: take configuration via a runtimeConfig
2018-04-13 10:57:17 +08: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
Tyler Schultz
fe0cf201f8
Safely print error
...
Format plugin code
Signed-off-by: Aidan Obley <aobley@pivotal.io>
2018-03-12 15:53:23 -07:00
Aidan Obley
d2f6472474
Ensure the bandwith plugin chooses the host veth device
...
When chained with a plugin that returns multiple devices, the bandwidth
plugin chooses the host veth device.
Signed-off-by: Tyler Schultz <tschultz@pivotal.io>
2018-03-12 15:08:53 -07:00
Gabe Rosenhouse
90252c30fb
meta/bandwidth: package main so we can build a binary
2018-02-27 22:24:26 -08:00
Gabe Rosenhouse
59fa37252f
meta/bandwidth: group and sort imports
...
ref: https://github.com/golang/go/wiki/CodeReviewComments#imports
2018-02-27 20:47:42 -08:00
Gabe Rosenhouse
dce91d11d6
meta/bandwidth: remove boilerplate comments
2018-02-27 20:47:41 -08:00
DennisDenuto
b78e535055
plugins/meta/bandwith: traffic shaping plugin
...
Add chained plugin to add a tbf qdisc to shape ingress/egress traffic
2018-02-27 20:47:41 -08:00
Casey Callendrello
2c05055101
Merge pull request #81 from squeed/portmap-hairpin
...
portmap: support hairpin, improve performance
2017-11-15 17:34:35 +01:00
Gabriel Rosenhouse
99f6be0319
Enable Windows CI (Appveyor)
...
- start list of linux_only plugins; ignore them when testing on Windows
- Isolate linux-only code by filename suffix
- Remove stub (NotImplemented) functions
- other misc. fixes for Windows compatibility
2017-11-10 08:09:29 -08: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
Dan Williams
998a0f6c6a
tuning: pass prevResult through
2017-07-26 14:39:01 -05: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
8c5e754617
flannel: set the cniVersion on the delegated config
...
Fixes: #23
2017-06-16 19:04:07 +02: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
Casey Callendrello
3c436520be
move most of cni/pkg to plugins/pkg: delete code staying in cni/pkg
...
This moves the following packages to this repository:
* ip
* ipam
* ns
* testutils
* utils
2017-05-23 16:12:49 +02:00
Casey Callendrello
9f52fc0374
Move documentation folder to individual READMEs
2017-05-16 16:46:15 +02:00
Aaron Levy
74d4cbed76
plugins/meta/flannel: If net config is missing do not return err on DEL
2017-03-17 13:37:33 -07:00
Dan Williams
d5acb127b8
spec/plugins: return interface details and multiple IP addresses to runtime
...
Updates the spec and plugins to return an array of interfaces and IP details
to the runtime including:
- interface names and MAC addresses configured by the plugin
- whether the interfaces are sandboxed (container/VM) or host (bridge, veth, etc)
- multiple IP addresses configured by IPAM and which interface they
have been assigned to
Returning interface details is useful for runtimes, as well as allowing
more flexible chaining of CNI plugins themselves. For example, some
meta plugins may need to know the host-side interface to be able to
apply firewall or traffic shaping rules to the container.
2017-01-25 11:31:18 -06:00
Dan Williams
b0b896f79a
plugins/flannel: organize test JSON alphabetically
...
Otherwise the test fails, since Go's JSON marshaller prints
dict items alphabetically in its String() call.
2017-01-25 11:31:18 -06:00
Dan Williams
befb95977c
types: make Result an interface and move existing Result to separate package
2017-01-25 11:31:18 -06:00
Dan Williams
cb4cd0e12c
testutils: pass netConf in for version operations; pass raw result out for tests
2017-01-25 11:31:18 -06:00
Mark St.Godard
6eac0ee904
flannel: rename stateDir to dataDir
...
Rename StateDir to DataDir for flannel CNI plugin
2016-11-17 15:54:29 -06:00
Mark St.Godard
15de81eac6
flannel: updated flannel test to use pkg/testutils
...
reworked the flannel test to use testutils CmdAddWithResult and
CmdDelWithResult
2016-11-13 12:16:32 -06:00
Mark St.Godard
f0daefa63d
flannel: add unit tests for config loading
...
backfill unit tests to add coverage for loadFlannelNetConf and
loadFlannelSubnetEnv
2016-11-05 23:27:14 -05:00