Skip to content

Commit

Permalink
contrib/cni/*: Change CNI config to latest spec
Browse files Browse the repository at this point in the history
Changes in the CNI specification have been leading
to issues with older configuration file formats.
Previously used fields or structures are causing
parsing errors like missing 'type' errors in
configurations. Checking out main brain than a
particular release version to ensure latest
plugin build.

Signed-off-by: PannagaRamamanohara <pbhojara@redhat.com>
  • Loading branch information
PannagaRao committed May 21, 2024
1 parent e90afe2 commit 648bed5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
42 changes: 19 additions & 23 deletions contrib/cni/10-crio-bridge.conflist
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
{
"cniVersion": "1.0.0",
"name": "crio",
"plugins": [
{
"type": "bridge",
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"hairpinMode": true,
"ipam": {
"type": "host-local",
"routes": [
{ "dst": "0.0.0.0/0" },
{ "dst": "::/0" }
],
"ranges": [
[{ "subnet": "10.85.0.0/16" }],
[{ "subnet": "1100:200::/24" }]
]
}
}
]
}
"cniVersion": "1.0.0",
"name": "crio-bridge",
"type": "bridge",
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"hairpinMode": true,
"ipam": {
"type": "host-local",
"routes": [
{ "dst": "0.0.0.0/0" },
{ "dst": "::/0" }
],
"ranges": [
[{ "subnet": "10.85.0.0/16" }],
[{ "subnet": "1100:200::/24" }]
]
}
}
2 changes: 1 addition & 1 deletion contrib/cni/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Download the `CNI` plugins source tree:
```bash
git clone https://github.com/containernetworking/plugins
cd plugins
git checkout v1.1.1
git checkout main
```

Build the `CNI` plugins:
Expand Down

0 comments on commit 648bed5

Please sign in to comment.