From 2452cebe646c2fe36a798d9a415d0eee956c88ab Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 24 May 2021 14:13:18 -0400 Subject: [PATCH] Do not include gateway in generated default networks 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 --- pkg/defaultnet/default_network.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/defaultnet/default_network.go b/pkg/defaultnet/default_network.go index 744318608..c2f93aed3 100644 --- a/pkg/defaultnet/default_network.go +++ b/pkg/defaultnet/default_network.go @@ -33,8 +33,7 @@ const networkTemplate = `{ "ranges": [ [ { - "subnet": "{{{{.Subnet}}}}", - "gateway": "{{{{.Gateway}}}}" + "subnet": "{{{{.Subnet}}}}" } ] ]