Skip to content

Commit

Permalink
Bump cni version to 0.3.1
Browse files Browse the repository at this point in the history
Signed-off-by: l1b0k <[email protected]>
  • Loading branch information
l1b0k committed Jul 9, 2021
1 parent 893821f commit 3a0d6de
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions docs/host-stack-cidrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
```json
10-terway.conf: |
{
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"name": "terway",
"eniip_virtual_type": "IPVlan",
"host_stack_cidrs": ["169.254.0.0/16"], // 此处为您希望添加的主机网络栈路由
Expand All @@ -50,7 +50,7 @@
```bash
cat /etc/cni/net.d/*
{
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"name": "terway-chainer",
"plugins": [
{
Expand Down
2 changes: 1 addition & 1 deletion docs/hubble-intergration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
```json
10-terway.conf: |
{
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"name": "terway",
"eniip_virtual_type": "IPVlan",
// 新增以下配置,以打开 Hubble 网络流量分析
Expand Down
2 changes: 1 addition & 1 deletion eni.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"name": "eni",
"type": "terway-plugin",
"prefix": "eth"
Expand Down
2 changes: 1 addition & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ if [ "$ENIIP_VIRTUAL_TYPE" = "ipvlan" ]; then
echo "Creating 10-terway.conflist"
jq '
{
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"name": "terway-chainer",
"plugins": [
del(.name,.cniVersion),
Expand Down
2 changes: 1 addition & 1 deletion plugin/terway/cni.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"github.com/AliyunContainerService/terway/pkg/link"
"github.com/AliyunContainerService/terway/plugin/backend"
"github.com/AliyunContainerService/terway/plugin/driver"
"github.com/AliyunContainerService/terway/plugin/version"
"github.com/AliyunContainerService/terway/rpc"
terwayTypes "github.com/AliyunContainerService/terway/types"
"github.com/AliyunContainerService/terway/version"

"github.com/containernetworking/cni/pkg/skel"
"github.com/containernetworking/cni/pkg/types"
Expand Down
2 changes: 1 addition & 1 deletion version/spec.go → plugin/version/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "github.com/containernetworking/cni/pkg/version"
// * VERSION
// Refer to https://github.com/containernetworking/cni/blob/master/SPEC.md
// for details
var specVersionSupported = version.PluginSupports("0.3.0", "0.4.0")
var specVersionSupported = version.PluginSupports("0.3.0", "0.3.1", "0.4.0")

// GetSpecVersionSupported gets the version of the CNI spec that's supported
// by the ENI plugin
Expand Down
2 changes: 1 addition & 1 deletion terway-cilium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ data:
}
10-terway.conf: |
{
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"name": "terway",
"type": "terway",
"eniip_virtual_type": "IPVlan",
Expand Down
2 changes: 1 addition & 1 deletion terway-multiip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ data:
}
10-terway.conf: |
{
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"name": "terway",
"type": "terway",
"eniip_virtual_type": "Veth",
Expand Down
2 changes: 1 addition & 1 deletion terway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ data:
}
10-terway.conf: |
{
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"name": "terway",
"type": "terway"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/templates/terway/terway-eni-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ data:
}
10-terway.conf: |
{
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"name": "terway",
"type": "terway"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/templates/terway/terway-multiip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ data:
}
10-terway.conf: |
{
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"name": "terway",
"type": "terway"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/templates/terway/terway-vpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ data:
}
10-terway.conf: |
{
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"name": "terway",
"type": "terway"
}
Expand Down

0 comments on commit 3a0d6de

Please sign in to comment.