You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cni/configuration.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
(or any CNI manager), plus node-local settings resolved at runtime from the
5
5
conflist, environment variables, and (as a last resort) the Kubernetes API.
6
6
7
-
> Last verified: 2026-07-16 against the current working tree of `internal/cni/config.go`
7
+
> Last verified: 2026-07-24 against the current working tree of `internal/cni/config.go`
8
8
> and `internal/installer/installer.go`.
9
9
10
10
## Runtime Configuration
@@ -102,7 +102,11 @@ the standard CNI `PluginConf` with Galactic-specific fields.
102
102
|`ipam`| No*|`IPAM`| IP address management configuration (see IPAM sub-fields below). *Required unless `GALACTIC_CNI_ENABLE_LOCAL_IPAM` is set — applies identically in `veth` and `tap` mode. In `tap` mode `cmdAdd` (`internal/cni/ops_add.go`) calls `allocateIPAM` unconditionally (unlike `veth` mode, which checks first), so omitting both `ipam` and `GALACTIC_CNI_ENABLE_LOCAL_IPAM` currently produces a nil-pointer panic in `tap` mode rather than a clean validation error — always set one or the other for tap. |
103
103
104
104
Standard CNI fields (`cniVersion`, `name`, `dns`, `runtimeConfig`) are also
105
-
supported via the embedded `types.PluginConf`.
105
+
supported via the embedded `types.PluginConf`. `galactic-cni` declares support
106
+
for the full CNI spec range (`version.All`, from `github.com/containernetworking/cni`
107
+
v1.3.0 in `go.mod`) and returns CNI Result `1.0.0` (`type100`); generated
108
+
configs (the installer's default conflist, Multus `NetworkAttachmentDefinition`
109
+
manifests) use `"cniVersion": "1.0.0"`.
106
110
107
111
### Interface Types
108
112
@@ -176,7 +180,7 @@ entry. Deleted in `cmdDel` in reverse order.
176
180
177
181
```json
178
182
{
179
-
"cniVersion": "0.3.1",
183
+
"cniVersion": "1.0.0",
180
184
"name": "galactic",
181
185
"type": "galactic-cni",
182
186
"vpc": "1",
@@ -193,7 +197,7 @@ from the built-in pool.
193
197
194
198
```json
195
199
{
196
-
"cniVersion": "0.3.1",
200
+
"cniVersion": "1.0.0",
197
201
"name": "testvpc",
198
202
"type": "galactic-cni",
199
203
"vpc": "10",
@@ -212,7 +216,7 @@ from the built-in pool.
212
216
213
217
```json
214
218
{
215
-
"cniVersion": "0.3.1",
219
+
"cniVersion": "1.0.0",
216
220
"name": "galactic",
217
221
"type": "galactic-cni",
218
222
"vpc": "1",
@@ -228,7 +232,7 @@ from the built-in pool.
228
232
229
233
```json
230
234
{
231
-
"cniVersion": "0.3.1",
235
+
"cniVersion": "1.0.0",
232
236
"name": "galactic",
233
237
"type": "galactic-cni",
234
238
"vpc": "1",
@@ -251,7 +255,7 @@ a link-local route via the host-side device.
0 commit comments