cni.git
9 years agoExpand description of goroutine+netns problems
Bryan Boreham [Thu, 17 Nov 2016 15:45:38 +0000 (15:45 +0000)]
Expand description of goroutine+netns problems

9 years agoMerge pull request #327 from dcbw/host-local-tests
Gabe Rosenhouse [Mon, 14 Nov 2016 16:17:40 +0000 (08:17 -0800)]
Merge pull request #327 from dcbw/host-local-tests

host-local: add DataDir IPAM conf option and use it for testcases

9 years agoMerge pull request #328 from markstgodard/noop-cni-args
Gabe Rosenhouse [Fri, 11 Nov 2016 06:24:58 +0000 (22:24 -0800)]
Merge pull request #328 from markstgodard/noop-cni-args

noop plugin: support multiple CNI_ARGS

9 years agonoop plugin: support multiple CNI_ARGS
Mark St.Godard [Thu, 10 Nov 2016 21:30:24 +0000 (15:30 -0600)]
noop plugin: support multiple CNI_ARGS

Updated noop plugin to parse the CNI_ARGS pairs, to allow more than just
the DEBUG arg.

9 years agoMerge pull request #324 from lstoll/lstoll-ipvlan-l3s
Dan Williams [Thu, 10 Nov 2016 18:53:59 +0000 (12:53 -0600)]
Merge pull request #324 from lstoll/lstoll-ipvlan-l3s

ipvlan: Support L3-Symmetric mode

9 years agohost-local: add DataDir IPAM conf option and use it for testcases
Dan Williams [Thu, 10 Nov 2016 16:50:58 +0000 (10:50 -0600)]
host-local: add DataDir IPAM conf option and use it for testcases

Add an e2e host-local plugin testcase, which requires being able
to pass the datadir into the plugin so we can erase it later.
We're not always guaranteed to have access to the default data
dir location, plus it should probably be configurable anyway.

9 years agoMerge pull request #307 from squeed/backwards-compatability-tests
Gabe Rosenhouse [Mon, 7 Nov 2016 22:25:09 +0000 (14:25 -0800)]
Merge pull request #307 from squeed/backwards-compatability-tests

testing: test invocation of newer plugins with an older libcni

9 years agoipvlan: Support ipvlan l3s mode.
Lincoln Stoll [Sat, 5 Nov 2016 20:22:51 +0000 (13:22 -0700)]
ipvlan: Support ipvlan l3s mode.

This landed in kernel in 4fbae7d

9 years agovendor: github.com/vishvananda/netlink@a1f8555
Lincoln Stoll [Sat, 5 Nov 2016 20:40:34 +0000 (13:40 -0700)]
vendor: github.com/vishvananda/netlink@a1f8555

Update to current master, to get IPVLAN L3s def.

9 years agotesting: test invocation of newer plugins with an older libcni
Casey Callendrello [Fri, 14 Oct 2016 14:38:32 +0000 (16:38 +0200)]
testing: test invocation of newer plugins with an older libcni

9 years agoMerge pull request #312 from tomdee/slack
Gabe Rosenhouse [Mon, 24 Oct 2016 23:25:48 +0000 (16:25 -0700)]
Merge pull request #312 from tomdee/slack

Add slack badge and link

9 years agoAdd slack badge and link
Tom Denham [Mon, 24 Oct 2016 23:23:04 +0000 (16:23 -0700)]
Add slack badge and link

9 years agoMerge pull request #311 from rkamudhan/patch-2
Gabe Rosenhouse [Sun, 23 Oct 2016 23:23:55 +0000 (16:23 -0700)]
Merge pull request #311 from rkamudhan/patch-2

Update ipvlan.md

9 years agoUpdate ipvlan.md
Kuralamudhan Ramakrishnan [Sun, 23 Oct 2016 22:18:44 +0000 (23:18 +0100)]
Update ipvlan.md

invalid json format

9 years agoMerge pull request #308 from rosenhouse/fix-skel-tests-containerid
Gabe Rosenhouse [Mon, 17 Oct 2016 22:02:27 +0000 (15:02 -0700)]
Merge pull request #308 from rosenhouse/fix-skel-tests-containerid

skel tests: correct name of CNI_CONTAINERID in tests of env vars

9 years agoskel tests: correct name of CNI_CONTAINERID in tests of env vars
Gabe Rosenhouse [Mon, 17 Oct 2016 00:18:57 +0000 (17:18 -0700)]
skel tests: correct name of CNI_CONTAINERID in tests of env vars

9 years agoMerge pull request #305 from yuewko/add_infoblox_link
Gabe Rosenhouse [Mon, 17 Oct 2016 00:08:52 +0000 (17:08 -0700)]
Merge pull request #305 from yuewko/add_infoblox_link

Add link to Infoblox IPAM plugin

9 years agoAdd link to Infoblox IPAM plugin
Yue Ko [Tue, 11 Oct 2016 18:07:30 +0000 (11:07 -0700)]
Add link to Infoblox IPAM plugin

Added link to Infoblox IPAM plugin in README.

9 years agoMerge pull request #304 from danp/patch-1
Gabe Rosenhouse [Mon, 10 Oct 2016 05:39:31 +0000 (22:39 -0700)]
Merge pull request #304 from danp/patch-1

docs/ptp: fix markdown formatting

9 years agodocs/ptp: fix markdown formatting
Dan Peterson [Mon, 10 Oct 2016 00:22:27 +0000 (21:22 -0300)]
docs/ptp: fix markdown formatting

9 years agoMerge pull request #301 from rosenhouse/backwards-compatibility-tests
Dan Williams [Thu, 6 Oct 2016 15:10:02 +0000 (10:10 -0500)]
Merge pull request #301 from rosenhouse/backwards-compatibility-tests

A test verifies that libcni is backwards compatible with legacy plugins

9 years agotravis: git clone at great depth
Gabe Rosenhouse [Thu, 6 Oct 2016 03:48:53 +0000 (20:48 -0700)]
travis: git clone at great depth

ensures that git commits referenced by backwards compatibility tests are
always available in CI.

9 years agoMerge pull request #302 from rosenhouse/readme-3rd-party-plugins
Gabe Rosenhouse [Mon, 3 Oct 2016 15:39:23 +0000 (08:39 -0700)]
Merge pull request #302 from rosenhouse/readme-3rd-party-plugins

3rd party plugins belong in their own repos

9 years agodocs: on contributing plugins to this repo
Gabe Rosenhouse [Mon, 3 Oct 2016 06:41:39 +0000 (23:41 -0700)]
docs: on contributing plugins to this repo

9 years agotesting: adds basic test of backwards compatibility
Gabe Rosenhouse [Mon, 3 Oct 2016 04:43:51 +0000 (21:43 -0700)]
testing: adds basic test of backwards compatibility

9 years agoMerge pull request #296 from rosenhouse/plugins-require-versioned-config
Dan Williams [Thu, 22 Sep 2016 22:11:34 +0000 (17:11 -0500)]
Merge pull request #296 from rosenhouse/plugins-require-versioned-config

Plugins validate cniVersion of NetConf

9 years agoMerge pull request #298 from freehan/fix-host-local-30
Dan Williams [Thu, 22 Sep 2016 14:13:32 +0000 (09:13 -0500)]
Merge pull request #298 from freehan/fix-host-local-30

host-local: fix allocation of last address in a /30

9 years agohost-local: fix allocation of last address in a /30
Minhan Xia [Fri, 16 Sep 2016 17:38:44 +0000 (10:38 -0700)]
host-local: fix allocation of last address in a /30

9 years agoMerge pull request #299 from tgraf/cilium-link
Brandon Philips [Mon, 19 Sep 2016 21:31:54 +0000 (14:31 -0700)]
Merge pull request #299 from tgraf/cilium-link

List cilium as 3rd party plugin

9 years agoskel: use named constant for Incompatible CNI Version error code
Gabe Rosenhouse [Mon, 19 Sep 2016 20:14:02 +0000 (13:14 -0700)]
skel: use named constant for Incompatible CNI Version error code

9 years agoversioning: ipam config is not versioned
Gabe Rosenhouse [Mon, 19 Sep 2016 20:10:27 +0000 (13:10 -0700)]
versioning: ipam config is not versioned

9 years agoversioning: plugins require version match with config
Gabe Rosenhouse [Mon, 19 Sep 2016 20:00:49 +0000 (13:00 -0700)]
versioning: plugins require version match with config

infer version 0.1.0 when config is missing an explicit "cniVersion" field

9 years agoversioning: add basic version decode for network config
Gabe Rosenhouse [Mon, 19 Sep 2016 04:56:17 +0000 (21:56 -0700)]
versioning: add basic version decode for network config

9 years agoREADME: List cilium as 3rd party plugin
Thomas Graf [Mon, 19 Sep 2016 11:44:25 +0000 (13:44 +0200)]
README: List cilium as 3rd party plugin

Signed-off-by: Thomas Graf <tgraf@suug.ch>
9 years agoskel: Plugins require a cniVersion in the NetConf
Gabe Rosenhouse [Wed, 7 Sep 2016 00:19:26 +0000 (20:19 -0400)]
skel: Plugins require a cniVersion in the NetConf

9 years agoMerge pull request #287 from rosenhouse/multi-version
Gabe Rosenhouse [Mon, 12 Sep 2016 20:44:14 +0000 (13:44 -0700)]
Merge pull request #287 from rosenhouse/multi-version

Plugins report a list of supported versions

9 years agoMerge pull request #295 from rosenhouse/update-readme-cloudfoundry-link
Gabe Rosenhouse [Thu, 8 Sep 2016 04:47:04 +0000 (00:47 -0400)]
Merge pull request #295 from rosenhouse/update-readme-cloudfoundry-link

readme: update link to CloudFoundry usage of CNI

9 years agoreadme: update link to CloudFoundry usage of CNI
Gabe Rosenhouse [Tue, 6 Sep 2016 22:18:24 +0000 (18:18 -0400)]
readme: update link to CloudFoundry usage of CNI

9 years agoversioning: revert spec version to 0.2.0
Gabe Rosenhouse [Tue, 6 Sep 2016 19:24:12 +0000 (15:24 -0400)]
versioning: revert spec version to 0.2.0

9 years agoversioning: misc cleanups
Gabe Rosenhouse [Tue, 6 Sep 2016 15:22:27 +0000 (11:22 -0400)]
versioning: misc cleanups

highlights:
 - NetConf struct finally includes cniVersion field
 - improve test coverage of current version report behavior
 - godoc a few key functions
 - allow tests to control version list reported by no-op plugin

9 years agoMerge pull request #294 from dcbw/host-local-ranges
Gabe Rosenhouse [Tue, 6 Sep 2016 03:24:42 +0000 (23:24 -0400)]
Merge pull request #294 from dcbw/host-local-ranges

Fix handling of host-local IP address ranges

9 years agohost-local: don't allocate the broadcast address or allow invalid networks
Dan Williams [Fri, 2 Sep 2016 22:20:09 +0000 (17:20 -0500)]
host-local: don't allocate the broadcast address or allow invalid networks

There aren't any IPs to allocate in /32 or /31 networks, so don't allow them.

9 years agohost-local: ensure requested IPs are within the given range
Dan Williams [Fri, 2 Sep 2016 21:52:29 +0000 (16:52 -0500)]
host-local: ensure requested IPs are within the given range

And also make sure that RangeStart and RangeEnd are sane.

9 years agohost-local: don't allocate past RangeEnd
Dan Williams [Fri, 2 Sep 2016 20:55:53 +0000 (15:55 -0500)]
host-local: don't allocate past RangeEnd

When RangeEnd is given, a.end = RangeEnd+1.

If when getSearchRange() is called and lastReservedIP equals
RangeEnd, a.nextIP() only compares lastReservedIP (which in this
example is RangeEnd) against a.end (which in this example is
RangeEnd+1) and they clearly don't match, so a.nextIP() returns
start=RangeEnd+1 and end=RangeEnd.

Get() happily allocates RangeEnd+1 because it only compares 'cur'
to the end returned by getSearchRange(), not to a.end, and thus
allocates past RangeEnd.

Since a.end is inclusive (eg, host-local will allocate a.end) the
fix is to simply set a.end equal to RangeEnd.

9 years agoinvoke: better name and unit test coverage for GetVersionInfo
Gabe Rosenhouse [Fri, 2 Sep 2016 20:39:01 +0000 (16:39 -0400)]
invoke: better name and unit test coverage for GetVersionInfo

9 years agoinvoke: correctly infer version for 0.1.0-vintage plugins
Gabe Rosenhouse [Fri, 2 Sep 2016 20:01:22 +0000 (16:01 -0400)]
invoke: correctly infer version for 0.1.0-vintage plugins

Older plugins return a known error when issued the VERSION command.
Capture this error and report it as a 0.1.0 version plugin.

9 years agoversioning: adds tooling to compile a program against a given old CNI version
Gabe Rosenhouse [Wed, 24 Aug 2016 05:57:00 +0000 (22:57 -0700)]
versioning: adds tooling to compile a program against a given old CNI version

Allows us to write tests that cover interactions between components of
differing versions

9 years agopkg/invoke: refactor plugin exec and backfill unit tests
Gabe Rosenhouse [Fri, 2 Sep 2016 17:12:14 +0000 (13:12 -0400)]
pkg/invoke: refactor plugin exec and backfill unit tests

9 years agoversioning: document meaning of 'Legacy' version support
Gabe Rosenhouse [Mon, 29 Aug 2016 23:20:18 +0000 (19:20 -0400)]
versioning: document meaning of 'Legacy' version support

9 years agoversioning: plugins report a list of supported versions
Gabe Rosenhouse [Mon, 22 Aug 2016 06:48:04 +0000 (23:48 -0700)]
versioning: plugins report a list of supported versions

Further progress on versioning support (Issue #266).
Bump CNI spec version to 0.3.0

9 years agoMerge pull request #293 from rosenhouse/backfill-invoke-exec-tests
Gabe Rosenhouse [Thu, 1 Sep 2016 00:49:08 +0000 (20:49 -0400)]
Merge pull request #293 from rosenhouse/backfill-invoke-exec-tests

Backfill tests for plugin execution

9 years agoMerge pull request #290 from asridharan/dcos
Dan Williams [Wed, 31 Aug 2016 23:19:02 +0000 (18:19 -0500)]
Merge pull request #290 from asridharan/dcos

Fixed the check for network namespace path.

9 years agopkg/ns: fixed the check for network namespace path.
Avinash Sridharan [Wed, 24 Aug 2016 23:49:50 +0000 (23:49 +0000)]
pkg/ns: fixed the check for network namespace path.

The expectation on older kernels (< 3.19) was to have the network
namespace always be a directory. This is not true if the network
namespace is bind mounted to a file, and will make the plugin fail
erroneously in such cases. The fix is to remove this assumption
completely and just do a basic check on the file system types being
returned.

Fixes #288

9 years agoMerge pull request #291 from tomdee/SetupVeth
Dan Williams [Wed, 31 Aug 2016 21:32:09 +0000 (16:32 -0500)]
Merge pull request #291 from tomdee/SetupVeth

pkg/ip: Ensure that SetupVeth returns correct hostVeth

9 years agopkg/ip: Ensure that SetupVeth returns correct hostVeth
Tom Denham [Mon, 29 Aug 2016 21:10:36 +0000 (14:10 -0700)]
pkg/ip: Ensure that SetupVeth returns correct hostVeth

The veth is moved from the container NS to the host NS.
This is handled by the code that sets the link to UP but the wrong
hostVeth is returned to the calling code.

9 years agoinvoke: backfill tests for plugin execution
Gabe Rosenhouse [Wed, 31 Aug 2016 03:52:47 +0000 (23:52 -0400)]
invoke: backfill tests for plugin execution

9 years agoMerge pull request #241 from luxas/add_platforms
Gabe Rosenhouse [Sat, 13 Aug 2016 22:11:28 +0000 (15:11 -0700)]
Merge pull request #241 from luxas/add_platforms

Add arm64 and ppc64le as new platforms

9 years agorelease: Release binaries for arm, arm64 and ppc64le too
Lucas Käldström [Sat, 13 Aug 2016 09:45:04 +0000 (12:45 +0300)]
release: Release binaries for arm, arm64 and ppc64le too

Modify the releasing script to cross-compile for the new architectures, but also keep backwards-compability

ref #209

9 years agotravis: Cross-compile for arm, arm64 and ppc64le on every build
Lucas Käldström [Sat, 13 Aug 2016 09:44:45 +0000 (12:44 +0300)]
travis: Cross-compile for arm, arm64 and ppc64le on every build

Cross-compile cni for arm, arm64 and ppc64le with go1.6 only
Allow go tip to fail
Set fast_finish to true, which means travis will instantly return build failure when any of the required builds fail

ref #209

9 years agobuild: Update the build script to make it possible to build for other architectures
Lucas Käldström [Sat, 13 Aug 2016 09:44:28 +0000 (12:44 +0300)]
build: Update the build script to make it possible to build for other architectures

This makes it possible to cross-compile cni like so:
$ GOARCH=arm ./build
$ GOARCH=arm64 ./build
$ GOARCH=ppc64le ./build

ref #209

9 years agovendor: Bump golang.org/x/sys/unix to a newer version
Lucas Käldström [Sat, 13 Aug 2016 09:44:04 +0000 (12:44 +0300)]
vendor: Bump golang.org/x/sys/unix to a newer version

The current vendor of sys/unix is really old, and doesn't work on arm64 and ppc64le
Updating to the latest version might also fix other issues

ref #209

9 years agoMerge pull request #267 from rosenhouse/version-cmd
Tom Denham [Fri, 12 Aug 2016 22:06:22 +0000 (15:06 -0700)]
Merge pull request #267 from rosenhouse/version-cmd

Adds VERSION command

9 years agoMerge pull request #273 from zreigz/reconfigure-bridge-ip
Tom Denham [Fri, 12 Aug 2016 22:04:22 +0000 (15:04 -0700)]
Merge pull request #273 from zreigz/reconfigure-bridge-ip

Reconfigure bridge IP address

9 years agoMerge pull request #274 from lukasredynk/update_netlink
Tom Denham [Fri, 12 Aug 2016 20:07:26 +0000 (13:07 -0700)]
Merge pull request #274 from lukasredynk/update_netlink

Update of netlink version

9 years agoMerge pull request #280 from prateekgogia/bug-fix-155
Tom Denham [Fri, 12 Aug 2016 20:04:49 +0000 (13:04 -0700)]
Merge pull request #280 from prateekgogia/bug-fix-155

pkg/ip: Return correct error if container name provided exists, and test cases

9 years agopkg/ip: Return correct error if container name provided exists, and test cases
Prateek Gogia [Sun, 7 Aug 2016 19:24:56 +0000 (19:24 +0000)]
pkg/ip: Return correct error if container name provided exists, and test cases

If interface name for a container provided by a user is already present,
Veth creation fails with incorrect error.
If os.IsExist error is returned by makeVethPair:
* Check for peer name, if exists generate another random peer name,
* else, IsExist error is due to container interface present, return error.

Fixes #155

9 years agolibcni: add util function InjectConf
Lukasz Zajaczkowski [Fri, 5 Aug 2016 08:45:58 +0000 (10:45 +0200)]
libcni: add util function InjectConf

9 years agoMerge pull request #277 from steveeJ/test-allocator-reserveip
Stefan Junker [Tue, 2 Aug 2016 21:43:43 +0000 (14:43 -0700)]
Merge pull request #277 from steveeJ/test-allocator-reserveip

ipam/host-local/allocator tests: cover requested IP

9 years agodocumentation: add description for forceAddress parameter
Lukasz Zajaczkowski [Mon, 1 Aug 2016 10:53:46 +0000 (12:53 +0200)]
documentation: add description for forceAddress parameter

9 years agoplugins: reconfigure bridge IP address
Lukasz Zajaczkowski [Fri, 29 Jul 2016 11:02:32 +0000 (13:02 +0200)]
plugins: reconfigure bridge IP address

Add possibility to reconfigure bridge IP address when there is a new value.
New boolean flag added to net configuration to force IP change if it is need.
Otherwise code behaves as previously and throws error

9 years agoipam/host-local/allocator tests: cover requested IP
Stefan Junker [Tue, 2 Aug 2016 01:11:22 +0000 (18:11 -0700)]
ipam/host-local/allocator tests: cover requested IP

Further:
* improve error handling

9 years agoMerge pull request #254 from steveeJ/ip-based-macaddr
Stefan Junker [Tue, 2 Aug 2016 00:43:49 +0000 (17:43 -0700)]
Merge pull request #254 from steveeJ/ip-based-macaddr

pkg/ipam: IP based macaddr

9 years agopkg/utils/hwaddr tests: cover v4 in v6 addr
Stefan Junker [Mon, 1 Aug 2016 23:50:40 +0000 (16:50 -0700)]
pkg/utils/hwaddr tests: cover v4 in v6 addr

9 years agoUpdate of netlink version
Lukas Redynk [Mon, 1 Aug 2016 12:04:03 +0000 (14:04 +0200)]
Update of netlink version

This is required for
https://github.com/containernetworking/cni/issues/251 because version of
netlink used doesn't support creating tap devices.

9 years agoMerge pull request #272 from rosenhouse/types-of-users
Tom Denham [Mon, 25 Jul 2016 23:35:58 +0000 (16:35 -0700)]
Merge pull request #272 from rosenhouse/types-of-users

README: distinguish between runtimes and plugins

9 years agoplugins/{bridge,macvlan} test: ensure hardware addr
Stefan Junker [Wed, 29 Jun 2016 23:03:25 +0000 (16:03 -0700)]
plugins/{bridge,macvlan} test: ensure hardware addr

* bridge: Test the following interface's hardware address for the CNI specific
prefix:
  - bridge with IP address
  - container veth
* plugins/macvlan test: ensure hardware addr

9 years agopkg/ip link_test: ensure SetHWAddrByIP has an effect
Stefan Junker [Wed, 29 Jun 2016 19:13:37 +0000 (12:13 -0700)]
pkg/ip link_test: ensure SetHWAddrByIP has an effect

9 years agoplugins/ptp: set the host veth hwaddr correctly
Stefan Junker [Wed, 29 Jun 2016 22:15:30 +0000 (15:15 -0700)]
plugins/ptp: set the host veth hwaddr correctly

9 years agopkg/ip: use iface name in SetHWAddrByIP
Stefan Junker [Wed, 29 Jun 2016 19:13:05 +0000 (12:13 -0700)]
pkg/ip: use iface name in SetHWAddrByIP

9 years agopkg/ip tests: cover SetupVeth and DelLinkByName*
Stefan Junker [Wed, 29 Jun 2016 02:52:08 +0000 (19:52 -0700)]
pkg/ip tests: cover SetupVeth and DelLinkByName*

9 years agoplugins: set MAC addresses based on IP
Stefan Junker [Wed, 29 Jun 2016 00:46:17 +0000 (17:46 -0700)]
plugins: set MAC addresses based on IP

This will give deterministic MAC addresses for all interfaces CNI
creates and manages the IP for:
* bridge: container veth and host bridge
* macvlan: container veth
* ptp: container veth and host veth

9 years agopkg/utils/hwaddr: migrate code from IPAM pkg
Stefan Junker [Tue, 28 Jun 2016 19:51:58 +0000 (12:51 -0700)]
pkg/utils/hwaddr: migrate code from IPAM pkg

9 years agopkg/ipam{,test}: improve error handling and tests
Stefan Junker [Tue, 21 Jun 2016 23:28:38 +0000 (16:28 -0700)]
pkg/ipam{,test}: improve error handling and tests

* _suite.go and _test.go file should be in the same package, using the
  _test package for that, which requires some fields and methods to be
  exported
* Introduce error type for cleaner error handling
* test adaptions for error type checking

9 years agoadd tests for generateHardwardAddr
Minhan Xia [Tue, 3 May 2016 22:47:28 +0000 (15:47 -0700)]
add tests for generateHardwardAddr

9 years agoconfigure mac address based on assigned ip
Minhan Xia [Tue, 3 May 2016 19:03:05 +0000 (12:03 -0700)]
configure mac address based on assigned ip

9 years agoMerge pull request #270 from rosenhouse/integration-tests
Gabe Rosenhouse [Fri, 22 Jul 2016 20:36:20 +0000 (13:36 -0700)]
Merge pull request #270 from rosenhouse/integration-tests

Add integration tests of libcni

9 years agoplugins: cleanup tests of no-op plugin
Gabe Rosenhouse [Fri, 22 Jul 2016 20:30:55 +0000 (13:30 -0700)]
plugins: cleanup tests of no-op plugin

9 years agoREADME: distinguish between runtimes and plugins
Gabe Rosenhouse [Fri, 22 Jul 2016 20:14:00 +0000 (13:14 -0700)]
README: distinguish between runtimes and plugins

Adds a link to the 3rd party SR-IOV plugin.

9 years agodocs: fix tuning doc, correct the result json
Gabe Rosenhouse [Thu, 21 Jul 2016 20:03:58 +0000 (13:03 -0700)]
docs: fix tuning doc, correct the result json

it does not report the version, it never did

9 years agospec: add version command and increment version to 0.2.0
Gabe Rosenhouse [Thu, 21 Jul 2016 19:59:08 +0000 (12:59 -0700)]
spec: add version command and increment version to 0.2.0

9 years agospec: remove CNI_VERSION env var, was never been implemented
Gabe Rosenhouse [Wed, 20 Jul 2016 20:39:51 +0000 (13:39 -0700)]
spec: remove CNI_VERSION env var, was never been implemented

No one uses this, and it is causing confusion (see #150)

9 years agolibcni: add integration test coverage
Gabe Rosenhouse [Fri, 15 Jul 2016 00:33:16 +0000 (17:33 -0700)]
libcni: add integration test coverage

9 years agoplugins: adds new no-op plugin that may be used as a test-double
Gabe Rosenhouse [Thu, 14 Jul 2016 20:59:10 +0000 (13:59 -0700)]
plugins: adds new no-op plugin that may be used as a test-double

Plugin can be configured to record all inputs and to respond with
arbitrary stdout or error message.  Will support upcoming integration
testing.

9 years agoMerge pull request #269 from rosenhouse/skel-dependency-injection
Gabe Rosenhouse [Fri, 15 Jul 2016 19:45:18 +0000 (12:45 -0700)]
Merge pull request #269 from rosenhouse/skel-dependency-injection

Refactor skel with dependency injection

9 years agomisc: fix up copyright dates
Gabe Rosenhouse [Thu, 14 Jul 2016 23:09:27 +0000 (16:09 -0700)]
misc: fix up copyright dates

9 years agoMerge pull request #263 from feiskyer/ptp-test
Tom Denham [Thu, 14 Jul 2016 20:32:05 +0000 (14:32 -0600)]
Merge pull request #263 from feiskyer/ptp-test

plugins/main/ptp: add functional tests

9 years agopkg/skel: plugins now respond to VERSION command
Gabe Rosenhouse [Thu, 14 Jul 2016 03:50:54 +0000 (23:50 -0400)]
pkg/skel: plugins now respond to VERSION command

To support CNI spec versioning, plugins must be able to report version
information to container runtimes.

9 years agopkg/skel: improve error message for missing CNI_COMMAND env var
Gabe Rosenhouse [Thu, 14 Jul 2016 02:54:22 +0000 (22:54 -0400)]
pkg/skel: improve error message for missing CNI_COMMAND env var

This makes the error message for missing CNI_COMMAND consistent with
that of other required environment variables.

9 years agopkg/skel: missing env var log lines appear in stderr
Gabe Rosenhouse [Thu, 14 Jul 2016 02:24:34 +0000 (22:24 -0400)]
pkg/skel: missing env var log lines appear in stderr

Previously, the log lines appeared in stdout before the JSON encoding of
the error message.  That would break JSON parsing of stdout.  Instead, we use
stderr for these unstructured logs, consistent with the CNI spec.

9 years agopkg/skel: refactor to use dependency injection
Gabe Rosenhouse [Thu, 14 Jul 2016 02:12:06 +0000 (22:12 -0400)]
pkg/skel: refactor to use dependency injection

Extract dependencies on os to enable more complete unit test coverage