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)
commit9b8a0e0c6478413b01d846d1292e05627c008819
treea531ae166efb64515224e5a39ff8f9680329c5d2
parent0b1b85413e601371a62051e9ac2516bbb348537f
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".
types/types.go