8be31e1c6f
skel tests: correct name of CNI_CONTAINERID in tests of env vars
2016-10-16 17:18:57 -07:00
5b696f3307
skel: use named constant for Incompatible CNI Version error code
2016-09-19 13:25:33 -07:00
fba37620e0
versioning: plugins require version match with config
...
infer version 0.1.0 when config is missing an explicit "cniVersion" field
2016-09-19 13:00:49 -07:00
fd150a4c97
skel: Plugins require a cniVersion in the NetConf
2016-09-18 21:30:57 -07:00
7958b9f0cc
versioning: revert spec version to 0.2.0
2016-09-06 15:37:42 -04:00
536cb5b99b
versioning: plugins report a list of supported versions
...
Further progress on versioning support (Issue #266 ).
Bump CNI spec version to 0.3.0
2016-09-02 11:26:17 -04:00
63755d7c57
pkg/skel: plugins now respond to VERSION command
...
To support CNI spec versioning, plugins must be able to report version
information to container runtimes.
2016-07-14 00:24:32 -04:00
f436418525
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.
2016-07-14 00:24:32 -04:00
c17e700759
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.
2016-07-14 00:24:27 -04:00
791d259e55
pkg/skel: refactor to use dependency injection
...
Extract dependencies on os to enable more complete unit test coverage
2016-07-14 00:06:58 -04:00
d582c9ce8f
skel/test: add case for empty NETNS
2016-05-27 12:26:42 +02:00
f6135c7ba3
*: add missing license headers + check
2016-04-01 15:35:21 +02:00
a6c5d80661
pkg/skel: add rudimentary unit tests
...
This is an attempt to testing the PluginMain() function of the skel pkg.
We should be able to do better by using a mockable interface for the
plugins, but this is a start.
2016-03-18 22:34:29 +01:00