Skip to content

Commit

Permalink
fix: use mtu network option for podman
Browse files Browse the repository at this point in the history
Fixes: #7881

Signed-off-by: Christian Luteke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
  • Loading branch information
clkamp authored and smira committed Dec 11, 2024
1 parent 61b1489 commit 470b755
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/provision/providers/docker/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ func (p *provisioner) Reflect(ctx context.Context, clusterName, stateDirectory s
res.clusterInfo.Network.GatewayAddrs = append(res.clusterInfo.Network.GatewayAddrs, addr)
}

mtuStr := network.Options["com.docker.network.driver.mtu"]
mtuStr, ok := network.Options["com.docker.network.driver.mtu"]
if !ok {
mtuStr = network.Options["mtu"] // Use the podman version of the option
}

res.clusterInfo.Network.MTU, err = strconv.Atoi(mtuStr)
if err != nil {
Expand Down

0 comments on commit 470b755

Please sign in to comment.