Skip to content

Commit

Permalink
Do not include gateway in generated default networks
Browse files Browse the repository at this point in the history
It's not required (CNI is perfectly happy to accept conflists
that do not include it) and it seems to be breaking default
network creation as non-root.

Signed-off-by: Matthew Heon <[email protected]>
  • Loading branch information
mheon committed May 24, 2021
1 parent d11e7ed commit 2452ceb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/defaultnet/default_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ const networkTemplate = `{
"ranges": [
[
{
"subnet": "{{{{.Subnet}}}}",
"gateway": "{{{{.Gateway}}}}"
"subnet": "{{{{.Subnet}}}}"
}
]
]
Expand Down

0 comments on commit 2452ceb

Please sign in to comment.