From 31ce261593b2a7a6622c1fa90b6459fc3134e499 Mon Sep 17 00:00:00 2001 From: Dean Chen <862469039@qq.com> Date: Sat, 8 Aug 2026 17:46:06 +0500 Subject: [PATCH] docs: use cniVersion 1.0.0 in current plugin examples Several current/* pages still showed 0.3.x in sample configs while bridge/current already uses 1.0.0. Align the rest of the current plugin docs with CNI 1.0-style examples. Signed-off-by: Dean Chen <862469039@qq.com> --- content/plugins/current/ipam/host-local.md | 2 +- content/plugins/current/main/host-device.md | 8 ++++---- content/plugins/current/main/tap.md | 2 +- content/plugins/current/main/vlan.md | 2 +- content/plugins/current/meta/bandwidth.md | 2 +- content/plugins/current/meta/firewall.md | 6 +++--- content/plugins/current/meta/portmap.md | 2 +- content/plugins/current/meta/sbr.md | 2 +- content/plugins/current/meta/vrf.md | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/content/plugins/current/ipam/host-local.md b/content/plugins/current/ipam/host-local.md index e146faf..fc2120f 100644 --- a/content/plugins/current/ipam/host-local.md +++ b/content/plugins/current/ipam/host-local.md @@ -81,7 +81,7 @@ deprecated but still supported. We can test it out on the command-line: ```bash -$ echo '{ "cniVersion": "0.3.1", "name": "examplenet", "ipam": { "type": "host-local", "ranges": [ [{"subnet": "203.0.113.0/24"}], [{"subnet": "2001:db8:1::/64"}]], "dataDir": "/tmp/cni-example" } }' | CNI_COMMAND=ADD CNI_CONTAINERID=example CNI_NETNS=/dev/null CNI_IFNAME=dummy0 CNI_PATH=. ./host-local +$ echo '{ "cniVersion": "1.0.0", "name": "examplenet", "ipam": { "type": "host-local", "ranges": [ [{"subnet": "203.0.113.0/24"}], [{"subnet": "2001:db8:1::/64"}]], "dataDir": "/tmp/cni-example" } }' | CNI_COMMAND=ADD CNI_CONTAINERID=example CNI_NETNS=/dev/null CNI_IFNAME=dummy0 CNI_PATH=. ./host-local ``` diff --git a/content/plugins/current/main/host-device.md b/content/plugins/current/main/host-device.md index f759491..30009b8 100644 --- a/content/plugins/current/main/host-device.md +++ b/content/plugins/current/main/host-device.md @@ -35,7 +35,7 @@ A sample configuration with `device` property looks like: ```json { - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "type": "host-device", "device": "enp0s1" } @@ -45,7 +45,7 @@ A sample configuration with `pciBusID` property looks like: ```json { - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "type": "host-device", "pciBusID": "0000:3d:00.1" } @@ -56,7 +56,7 @@ A sample configuration utilizing `deviceID` runtime configuration looks like: 1. From operator perspective: ```json { - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "type": "host-device", "capabilities": { "deviceID": true @@ -66,7 +66,7 @@ A sample configuration utilizing `deviceID` runtime configuration looks like: 2. From plugin perspective: ```json { - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "type": "host-device", "runtimeConfig": { "deviceID": "0000:3d:00.1" diff --git a/content/plugins/current/main/tap.md b/content/plugins/current/main/tap.md index b7a789a..2c686a3 100644 --- a/content/plugins/current/main/tap.md +++ b/content/plugins/current/main/tap.md @@ -18,7 +18,7 @@ the plugin will use the 'ip' tool to create the tap device when owner/group is n ```json { "name": "mynet", - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "type": "tap", "mac": "00:11:22:33:44:55", "mtu": 1500, diff --git a/content/plugins/current/main/vlan.md b/content/plugins/current/main/vlan.md index 3f489dd..371f353 100644 --- a/content/plugins/current/main/vlan.md +++ b/content/plugins/current/main/vlan.md @@ -17,7 +17,7 @@ The host-local IPAM plugin can be used to allocate an IP address to the containe ```json { "name": "mynet", - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "type": "vlan", "master": "eth0", "mtu": 1500, diff --git a/content/plugins/current/meta/bandwidth.md b/content/plugins/current/meta/bandwidth.md index faa0ead..0171d21 100644 --- a/content/plugins/current/meta/bandwidth.md +++ b/content/plugins/current/meta/bandwidth.md @@ -25,7 +25,7 @@ The following is an example [json configuration list](https://github.com/contain ```json { - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "name": "mynet", "plugins": [ { diff --git a/content/plugins/current/meta/firewall.md b/content/plugins/current/meta/firewall.md index d41a07c..13a286d 100644 --- a/content/plugins/current/meta/firewall.md +++ b/content/plugins/current/meta/firewall.md @@ -18,7 +18,7 @@ The following network configuration file ```json { - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "name": "bridge-firewalld", "plugins": [ { @@ -61,7 +61,7 @@ look like: ```json { - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "name": "bridge-firewalld", "plugins": [ { @@ -100,7 +100,7 @@ look like: ```json { - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "name": "bridge-firewalld", "plugins": [ { diff --git a/content/plugins/current/meta/portmap.md b/content/plugins/current/meta/portmap.md index 61f0c25..1707210 100644 --- a/content/plugins/current/meta/portmap.md +++ b/content/plugins/current/meta/portmap.md @@ -31,7 +31,7 @@ look like: ```json { - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "name": "mynet", "plugins": [ { diff --git a/content/plugins/current/meta/sbr.md b/content/plugins/current/meta/sbr.md index 7f17805..c8f1a88 100644 --- a/content/plugins/current/meta/sbr.md +++ b/content/plugins/current/meta/sbr.md @@ -131,7 +131,7 @@ is the following. ```json { "name": "flannel-sbr", - "cniVersion": "0.3.0", + "cniVersion": "1.0.0", "plugins": [ { "type": "flannel" }, diff --git a/content/plugins/current/meta/vrf.md b/content/plugins/current/meta/vrf.md index 5342ab2..6de234d 100644 --- a/content/plugins/current/meta/vrf.md +++ b/content/plugins/current/meta/vrf.md @@ -22,7 +22,7 @@ The following network configuration file ```json { - "cniVersion": "0.3.1", + "cniVersion": "1.0.0", "name": "macvlan-vrf", "plugins": [ {