spec,libcni: add support for injecting runtimeConfig into plugin stdin data
authorDan Williams <dcbw@redhat.com>
Fri, 17 Feb 2017 04:57:12 +0000 (22:57 -0600)
committerDan Williams <dcbw@redhat.com>
Wed, 1 Mar 2017 16:49:40 +0000 (10:49 -0600)
commit71c4a60741c87e17325ea6b03234a38fabd06986
tree2c0d6a5286e0fd48c0d38db65c6471c7ebacdfbc
parent7d8c23dd59601bab377e2b950e8cc43e9aa9bc20
spec,libcni: add support for injecting runtimeConfig into plugin stdin data

Add a new CapabilityArgs member to the RuntimeConf struct which runtimes can
use to pass arbitrary capability-based keys to the plugin.  Elements of this
member will be filtered against the plugin's advertised capabilities (from
its config JSON) and then added to a new "runtimeConfig" top-level map added
to the config JSON sent to the plugin on stdin.

Also "runtime_config"->"runtimeConfig" in CONVENTIONS.md to make
capitalization consistent with other CNI config keys like "cniVersion".
CONVENTIONS.md
SPEC.md
libcni/api.go
libcni/api_test.go
libcni/conf.go
libcni/conf_test.go
pkg/types/types.go