Minor rewording about default config version
This commit is contained in:
parent
f15d521b2a
commit
c806f3d62b
@ -23,8 +23,8 @@ and Release v0.5.0 supports Spec v0.3.0.
|
|||||||
If you maintain CNI configuration files for a container runtime that uses CNI,
|
If you maintain CNI configuration files for a container runtime that uses CNI,
|
||||||
ensure that the configuration files specify a `cniVersion` field and that the
|
ensure that the configuration files specify a `cniVersion` field and that the
|
||||||
version there is supported by your container runtime and CNI plugins.
|
version there is supported by your container runtime and CNI plugins.
|
||||||
Configuration files without the version field should be labeled version 0.2.0
|
Configuration files without a version field should be given version 0.2.0.
|
||||||
by default. The CNI spec includes example configuration files for
|
The CNI spec includes example configuration files for
|
||||||
[single plugins](https://github.com/containernetworking/cni/blob/master/SPEC.md#example-configurations)
|
[single plugins](https://github.com/containernetworking/cni/blob/master/SPEC.md#example-configurations)
|
||||||
and for [lists of chained plugins](https://github.com/containernetworking/cni/blob/master/SPEC.md#example-configurations).
|
and for [lists of chained plugins](https://github.com/containernetworking/cni/blob/master/SPEC.md#example-configurations).
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ provided in the [network configuration JSON](https://github.com/containernetwork
|
|||||||
That field is a request for the plugin to return results of a particular format:
|
That field is a request for the plugin to return results of a particular format:
|
||||||
|
|
||||||
- If the `cniVersion` field is not present, then spec v0.2.0 should be assumed
|
- If the `cniVersion` field is not present, then spec v0.2.0 should be assumed
|
||||||
and v0.2.0 format JSON returned.
|
and v0.2.0 format result JSON returned.
|
||||||
|
|
||||||
- If the plugin doesn't support the version, the plugin must error.
|
- If the plugin doesn't support the version, the plugin must error.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user