Gabe Rosenhouse [Mon, 27 Feb 2017 15:57:00 +0000 (07:57 -0800)]
docs: table formatting is hard
Gabe Rosenhouse [Mon, 27 Feb 2017 15:53:09 +0000 (07:53 -0800)]
docs: fill-out and correct version conversion table
Gabe Rosenhouse [Mon, 27 Feb 2017 15:53:09 +0000 (07:53 -0800)]
docs: fill-out and correct version conversion table
Gabe Rosenhouse [Mon, 27 Feb 2017 15:11:04 +0000 (07:11 -0800)]
docs: minor improvements to spec-upgrades
Gabe Rosenhouse [Mon, 27 Feb 2017 15:11:04 +0000 (07:11 -0800)]
docs: minor improvements to spec-upgrades
Casey Callendrello [Mon, 27 Feb 2017 13:57:31 +0000 (14:57 +0100)]
docs: add small upgrade instructions
Casey Callendrello [Mon, 27 Feb 2017 13:57:31 +0000 (14:57 +0100)]
docs: add small upgrade instructions
Casey Callendrello [Mon, 27 Feb 2017 13:27:56 +0000 (14:27 +0100)]
docs: minor improvements to 0.3.0 upgrade guidance
Casey Callendrello [Mon, 27 Feb 2017 13:27:56 +0000 (14:27 +0100)]
docs: minor improvements to 0.3.0 upgrade guidance
Gabe Rosenhouse [Mon, 27 Feb 2017 00:53:52 +0000 (16:53 -0800)]
docs: Edits to v0.3.0 upgrade guidance
Gabe Rosenhouse [Mon, 27 Feb 2017 00:53:52 +0000 (16:53 -0800)]
docs: Edits to v0.3.0 upgrade guidance
Dan Williams [Sun, 26 Feb 2017 21:26:14 +0000 (13:26 -0800)]
docs: CNI versioning for 0.3.0 upgrade
Dan Williams [Sun, 26 Feb 2017 21:26:14 +0000 (13:26 -0800)]
docs: CNI versioning for 0.3.0 upgrade
Casey Callendrello [Fri, 17 Feb 2017 11:19:38 +0000 (12:19 +0100)]
libcni: up-convert a Config to a ConfigList when no other configs are found.
Tom Denham [Thu, 23 Feb 2017 18:40:59 +0000 (10:40 -0800)]
Merge pull request #379 from Intel-Corp/master
README: List multus as 3rd party plugin
Aithal [Thu, 23 Feb 2017 17:53:11 +0000 (09:53 -0800)]
vendor: Update vishvanana/netlink dependency
Aithal [Thu, 23 Feb 2017 17:52:13 +0000 (09:52 -0800)]
pkg/ip: refactored so that builds succeed on non-linux platforms
moved functions that depend on linux packages into a separate file and added
nop methods with a build tag for non-linux platforms in a new file.
Aithal [Thu, 23 Feb 2017 17:52:13 +0000 (09:52 -0800)]
pkg/ip: refactored so that builds succeed on non-linux platforms
moved functions that depend on linux packages into a separate file and added
nop methods with a build tag for non-linux platforms in a new file.
Aithal [Thu, 23 Feb 2017 17:50:48 +0000 (09:50 -0800)]
pkg/ns, pkg/types: refactored non linux build fix code to
Make GetCurrentNS platform specific instead of getCurrentThreadNetNSPath
Aithal [Thu, 23 Feb 2017 17:50:48 +0000 (09:50 -0800)]
pkg/ns, pkg/types: refactored non linux build fix code to
Make GetCurrentNS platform specific instead of getCurrentThreadNetNSPath
Dan Williams [Thu, 23 Feb 2017 02:32:41 +0000 (20:32 -0600)]
Merge pull request #371 from rosenhouse/spec-netconf-routes
spec: Remove `routes` from Network Configuration
Bryan Boreham [Wed, 22 Feb 2017 16:52:09 +0000 (16:52 +0000)]
Replace Michael Bridgen with Bryan Boreham
Kuralamudhan Ramakrishnan [Wed, 22 Feb 2017 16:13:12 +0000 (16:13 +0000)]
README: List multus as 3rd party plugin
refer #343 issue
Gabe Rosenhouse [Tue, 21 Feb 2017 01:51:38 +0000 (17:51 -0800)]
Merge pull request #376 from zackhsi/fix-grammar
Fix grammar
Casey Callendrello [Mon, 20 Feb 2017 23:28:19 +0000 (00:28 +0100)]
plugins/main/ptp: set the Sandbox property on the response
Zack Hsi [Mon, 20 Feb 2017 19:21:49 +0000 (11:21 -0800)]
Fix grammar
Aithal [Sat, 18 Feb 2017 01:04:53 +0000 (17:04 -0800)]
pkg/ns: refactored so that builds succeed on non-linux platforms
moved functions that depend on linux packages (sys/unix) into a separate file
and added nop methods with a build tag for non-linux platforms in a new file.
Aithal [Sat, 18 Feb 2017 01:04:53 +0000 (17:04 -0800)]
pkg/ns: refactored so that builds succeed on non-linux platforms
moved functions that depend on linux packages (sys/unix) into a separate file
and added nop methods with a build tag for non-linux platforms in a new file.
Gabe Rosenhouse [Mon, 20 Feb 2017 14:33:33 +0000 (06:33 -0800)]
Merge pull request #372 from rosenhouse/consolidate-host-local-docs
docs: consolidate host-local documentation
Gabe Rosenhouse [Wed, 15 Feb 2017 23:18:25 +0000 (15:18 -0800)]
docs: consolidate host-local documentation
- remove the README.md in the plugins/ipam/host-local (no other plugin
has this)
- merge that info into the main Documentation/host-local.md
Gabe Rosenhouse [Wed, 15 Feb 2017 23:18:25 +0000 (15:18 -0800)]
docs: consolidate host-local documentation
- remove the README.md in the plugins/ipam/host-local (no other plugin
has this)
- merge that info into the main Documentation/host-local.md
Gabe Rosenhouse [Wed, 15 Feb 2017 23:02:23 +0000 (15:02 -0800)]
spec: Remove `routes` from Network Configuration
- this is supported by some IPAM plugins but is not required of all of
them
Tom Denham [Tue, 14 Feb 2017 19:47:59 +0000 (11:47 -0800)]
Merge pull request #369 from containernetworking/port-mapping
CONVENTIONS.md: Update details on port-mappings
Tom Denham [Mon, 13 Feb 2017 18:14:45 +0000 (10:14 -0800)]
More markups
Tom Denham [Thu, 9 Feb 2017 22:03:47 +0000 (14:03 -0800)]
Update with feedback
Tom Denham [Wed, 8 Feb 2017 20:43:04 +0000 (12:43 -0800)]
CONVENTIONS.md: Update details on port-mappings
After discussion with the CNI maintainers and representatives from Mesos and Kubernetes we've settled on this approach for passing the dynamic port mapping information from runtimes to plugins.
Including it in the plugin config allows "operators" to signal that they expect port mapping information to be passed to a specific plugin (or plugins). This follows the model that config passed in the plugin config should be acted upon by a plugin.
Runtimes can optionally return an error to users if they find no plugin in the chain that supports port mappings.
I'm sure we'd all like to see this merged soon so I'll try to turn any feedback quickly (and I'm happy to get any and all feedback - spellings, unclear working, wrong JSON terminology etc..)
Gabe Rosenhouse [Wed, 8 Feb 2017 18:15:49 +0000 (10:15 -0800)]
Merge pull request #361 from ofiliz/issue-360
invoke: Enable plugin file names with extensions
Gabe Rosenhouse [Wed, 8 Feb 2017 18:15:49 +0000 (10:15 -0800)]
Merge pull request #361 from ofiliz/issue-360
invoke: Enable plugin file names with extensions
Onur Filiz [Sat, 4 Feb 2017 20:01:47 +0000 (12:01 -0800)]
invoke: Enable plugin file names with extensions
A CNI network configuration file contains the plugin's executable file name.
Some platforms like Windows require a file name extension for executables.
This causes unnecessary burden on admins as they now have to maintain two
versions of each type of netconfig file, which differ only by the ".exe"
extension. A much simpler design is for invoke package to also look for
well-known extensions on platforms that require it. Existing tests are
improved and new tests are added to cover the new behavior.
Fixes #360
Onur Filiz [Sat, 4 Feb 2017 20:01:47 +0000 (12:01 -0800)]
invoke: Enable plugin file names with extensions
A CNI network configuration file contains the plugin's executable file name.
Some platforms like Windows require a file name extension for executables.
This causes unnecessary burden on admins as they now have to maintain two
versions of each type of netconfig file, which differ only by the ".exe"
extension. A much simpler design is for invoke package to also look for
well-known extensions on platforms that require it. Existing tests are
improved and new tests are added to cover the new behavior.
Fixes #360
Gabe Rosenhouse [Fri, 3 Feb 2017 19:18:39 +0000 (14:18 -0500)]
Merge pull request #364 from pires/build_tag
pkg/utils/sysctl/sysctl_linux.go: couple fixes
Paulo Pires [Fri, 3 Feb 2017 04:47:43 +0000 (04:47 +0000)]
pkg/utils/sysctl/sysctl_linux.go: fix typo.
Paulo Pires [Fri, 3 Feb 2017 04:47:43 +0000 (04:47 +0000)]
pkg/utils/sysctl/sysctl_linux.go: fix typo.
Paulo Pires [Fri, 3 Feb 2017 04:46:55 +0000 (04:46 +0000)]
pkg/utils/sysctl/sysctl_linux.go: fix build tag.
Paulo Pires [Fri, 3 Feb 2017 04:46:55 +0000 (04:46 +0000)]
pkg/utils/sysctl/sysctl_linux.go: fix build tag.
Tom Denham [Thu, 2 Feb 2017 20:35:07 +0000 (12:35 -0800)]
Merge pull request #359 from ofiliz/issue-355
libcni, pkg\invoke: Use OS-specific list separator when parsing CNI_PATH
Onur [Sat, 28 Jan 2017 21:30:00 +0000 (13:30 -0800)]
spec, libcni, pkg/invoke: Use OS-agnostic separator when parsing CNI_PATH
Hardcoding the list separator character as ":" causes CNI to fail when parsing
CNI_PATH on other operating systems. For example, Windows uses ";" as list
separator because ":" can legally appear in paths such as "C:\path\to\file".
This change replaces use of ":" with OS-agnostic APIs or os.PathListSeparator.
Fixes #358
Onur [Sat, 28 Jan 2017 21:30:00 +0000 (13:30 -0800)]
spec, libcni, pkg/invoke: Use OS-agnostic separator when parsing CNI_PATH
Hardcoding the list separator character as ":" causes CNI to fail when parsing
CNI_PATH on other operating systems. For example, Windows uses ";" as list
separator because ":" can legally appear in paths such as "C:\path\to\file".
This change replaces use of ":" with OS-agnostic APIs or os.PathListSeparator.
Fixes #358
Gabe Rosenhouse [Wed, 25 Jan 2017 19:20:57 +0000 (11:20 -0800)]
Merge pull request #145 from dcbw/pass-ifname-back
Pass interface name and MAC back to runtime
Dan Williams [Tue, 22 Nov 2016 17:32:35 +0000 (11:32 -0600)]
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.
Dan Williams [Tue, 22 Nov 2016 17:32:35 +0000 (11:32 -0600)]
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.
Dan Williams [Thu, 19 Jan 2017 14:44:35 +0000 (08:44 -0600)]
pkg/ipam: add testcases
Dan Williams [Thu, 19 Jan 2017 14:44:35 +0000 (08:44 -0600)]
pkg/ipam: add testcases
Dan Williams [Mon, 28 Nov 2016 15:33:39 +0000 (09:33 -0600)]
macvlan/ipvlan: use common RenameLink method
Dan Williams [Wed, 18 Jan 2017 22:39:57 +0000 (16:39 -0600)]
plugins/flannel: organize test JSON alphabetically
Otherwise the test fails, since Go's JSON marshaller prints
dict items alphabetically in its String() call.
Dan Williams [Wed, 9 Nov 2016 21:11:18 +0000 (15:11 -0600)]
types: make Result an interface and move existing Result to separate package
Dan Williams [Mon, 28 Nov 2016 15:33:39 +0000 (09:33 -0600)]
macvlan/ipvlan: use common RenameLink method
Dan Williams [Tue, 22 Nov 2016 16:02:39 +0000 (10:02 -0600)]
testutils: pass netConf in for version operations; pass raw result out for tests
Dan Williams [Wed, 9 Nov 2016 21:11:18 +0000 (15:11 -0600)]
types: make Result an interface and move existing Result to separate package
Dan Williams [Tue, 22 Nov 2016 16:02:39 +0000 (10:02 -0600)]
testutils: pass netConf in for version operations; pass raw result out for tests
Gabe Rosenhouse [Mon, 23 Jan 2017 15:42:57 +0000 (07:42 -0800)]
Merge pull request #355 from rosenhouse/skel-main-errors
skel: adds PluginMainWithError which returns a *types.Error
Gabe Rosenhouse [Mon, 23 Jan 2017 00:39:15 +0000 (16:39 -0800)]
skel: adds PluginMainWithError which returns a *types.Error
Enables plugins to do their own error-handling and cleanup logic
Gabe Rosenhouse [Mon, 23 Jan 2017 00:39:15 +0000 (16:39 -0800)]
skel: adds PluginMainWithError which returns a *types.Error
Enables plugins to do their own error-handling and cleanup logic
Gabe Rosenhouse [Fri, 20 Jan 2017 21:50:24 +0000 (13:50 -0800)]
Merge pull request #352 from containernetworking/conventions
Documentation: Add conventions doc
Tom Denham [Fri, 20 Jan 2017 20:49:00 +0000 (12:49 -0800)]
Update CONVENTIONS.md
Gabe Rosenhouse [Fri, 20 Jan 2017 16:35:37 +0000 (08:35 -0800)]
Merge pull request #346 from dcbw/ordered-chaining
api/plugins: implement ordered plugin chaining
Dan Williams [Sat, 17 Dec 2016 00:56:39 +0000 (18:56 -0600)]
api,libcni: add network config list-based plugin chaining
Using a new ".configlist" file format that allows specifying
a list of CNI network configurations to run, add new libcni
helper functions to call each plugin in the list, injecting
the overall name, CNI version, and previous plugin's Result
structure into the configuration of the next plugin.
Dan Williams [Sat, 17 Dec 2016 00:56:39 +0000 (18:56 -0600)]
api,libcni: add network config list-based plugin chaining
Using a new ".configlist" file format that allows specifying
a list of CNI network configurations to run, add new libcni
helper functions to call each plugin in the list, injecting
the overall name, CNI version, and previous plugin's Result
structure into the configuration of the next plugin.
Dan Williams [Sat, 17 Dec 2016 01:35:26 +0000 (19:35 -0600)]
spec: add network configuration list specification
Tom Denham [Fri, 20 Jan 2017 02:05:28 +0000 (18:05 -0800)]
Spec/Conventions: Update to include plugin config
Dan Williams [Fri, 16 Dec 2016 19:53:51 +0000 (13:53 -0600)]
noop: allow specifying debug file in config JSON
Chaining sends different config JSON to each plugin, but the same
environment, and if we want to test multiple noop plugin runs in
the same chain we need a way of telling each run to use a different
debug file.
Tom Denham [Tue, 17 Jan 2017 23:53:24 +0000 (15:53 -0800)]
Documentation: Add conventions doc
Tom Denham [Fri, 13 Jan 2017 01:06:04 +0000 (17:06 -0800)]
Merge pull request #334 from squeed/host-local-dns
ipam/host-local: add ResolvConf argument for DNS configuration
Tom Denham [Thu, 12 Jan 2017 21:42:25 +0000 (13:42 -0800)]
Merge pull request #350 from rosenhouse/spec-version
spec: notice of version
Gabe Rosenhouse [Wed, 11 Jan 2017 16:35:42 +0000 (08:35 -0800)]
spec: notice of version
Casey Callendrello [Mon, 21 Nov 2016 18:05:41 +0000 (19:05 +0100)]
ipam/host-local: add ResolvConf argument for DNS configuration
This adds the option `resolvConf` to the host-local IPAM configuration.
If specified, the plugin will try to parse the file as a resolv.conf(5)
type file and return it in the DNS response.
Casey Callendrello [Mon, 21 Nov 2016 18:05:41 +0000 (19:05 +0100)]
ipam/host-local: add ResolvConf argument for DNS configuration
This adds the option `resolvConf` to the host-local IPAM configuration.
If specified, the plugin will try to parse the file as a resolv.conf(5)
type file and return it in the DNS response.
Tom Denham [Tue, 10 Jan 2017 21:06:46 +0000 (13:06 -0800)]
Merge pull request #115 from aanm/implementing-ipam-as-lib
ipam/host-local: Move allocator and config to backend
André Martins [Sat, 6 Feb 2016 21:52:27 +0000 (21:52 +0000)]
ipam/host-local: Move allocator and config to backend
Signed-off-by: André Martins <aanm90@gmail.com>
Gabe Rosenhouse [Mon, 19 Dec 2016 19:02:20 +0000 (11:02 -0800)]
Merge pull request #325 from squeed/update-maintainer
MAINTAINERS: hi CaseyC!
Casey Callendrello [Tue, 8 Nov 2016 17:38:04 +0000 (18:38 +0100)]
MAINTAINERS: hi CaseyC!
Gabe Rosenhouse [Fri, 16 Dec 2016 16:06:17 +0000 (08:06 -0800)]
Merge pull request #345 from rosenhouse/travis-go-versions
travis: roll forward the versions of Go that we test
Gabe Rosenhouse [Fri, 16 Dec 2016 02:41:07 +0000 (18:41 -0800)]
travis: roll forward the versions of Go that we test
Gabe Rosenhouse [Fri, 16 Dec 2016 02:35:43 +0000 (18:35 -0800)]
Merge pull request #314 from rosenhouse/noop-helpful-message
plugins/noop: return a helpful message for test authors
Gabe Rosenhouse [Fri, 16 Dec 2016 02:34:57 +0000 (18:34 -0800)]
Merge pull request #344 from dcbw/interface-checks
all: assert internal objects implement interfaces
Gabe Rosenhouse [Fri, 16 Dec 2016 02:20:34 +0000 (18:20 -0800)]
Merge branch 'master' into interface-checks
Gabe Rosenhouse [Fri, 16 Dec 2016 02:18:25 +0000 (18:18 -0800)]
Merge pull request #341 from dcbw/host-local-trim
host-local: trim whitespace from container IDs and disk file contents
Dan Williams [Wed, 14 Dec 2016 23:09:01 +0000 (17:09 -0600)]
all: assert internal objects implement interfaces
Dan Williams [Wed, 14 Dec 2016 23:09:01 +0000 (17:09 -0600)]
all: assert internal objects implement interfaces
Dan Williams [Sat, 10 Dec 2016 00:22:08 +0000 (18:22 -0600)]
Merge pull request #340 from vzcambria/master
Fix README.md host-local IPAM range start/end typo
Dan Williams [Sat, 10 Dec 2016 00:16:38 +0000 (18:16 -0600)]
host-local: trim whitespace from container IDs and disk file contents
It doesn't seem like container IDs should really have whitespace or
newlines in them. As a complete edge-case, manipulating the host-local
store's IP reservations with 'echo' puts a newline at the end, which
caused matching to fail in ReleaseByID(). Don't ask...
VZ Cambria [Tue, 6 Dec 2016 15:40:55 +0000 (10:40 -0500)]
Fix README.md host-local IPAM range start/end typo
Konstantinos Karampogias [Thu, 27 Oct 2016 17:47:04 +0000 (10:47 -0700)]
plugins/noop: return a helpful message for test authors
Signed-off-by: Gabe Rosenhouse <grosenhouse@pivotal.io>
Dan Williams [Fri, 2 Dec 2016 19:33:36 +0000 (13:33 -0600)]
Merge pull request #335 from JulienBalestra/json_ext
libcni conf: support .json file extension
Julien Balestra [Wed, 23 Nov 2016 09:46:17 +0000 (10:46 +0100)]
libcni conf: support .json file extension
Content of the files are json, the configuration load should support .json
Dan Williams [Fri, 18 Nov 2016 21:27:35 +0000 (15:27 -0600)]
Merge pull request #322 from cf-container-networking/flannel-cni-stateDir
Allow flannel CNI plugin stateDir to be configurable
Mark St.Godard [Thu, 17 Nov 2016 21:54:29 +0000 (15:54 -0600)]
flannel: rename stateDir to dataDir
Rename StateDir to DataDir for flannel CNI plugin
Mark St.Godard [Thu, 17 Nov 2016 21:54:29 +0000 (15:54 -0600)]
flannel: rename stateDir to dataDir
Rename StateDir to DataDir for flannel CNI plugin
Gabe Rosenhouse [Thu, 17 Nov 2016 16:00:31 +0000 (08:00 -0800)]
Merge pull request #330 from bboreham/ns-warning
Expand description of goroutine+netns problems
Bryan Boreham [Thu, 17 Nov 2016 15:45:38 +0000 (15:45 +0000)]
Expand description of goroutine+netns problems