add gateway on CNS to get populated (#2805)
* add primaryip and gateway on CNS * add windows 2025 build * remove windows 2025 build from PR
This commit is contained in:
Родитель
a6364a5de7
Коммит
626b05a092
|
@ -3,6 +3,7 @@ package middlewares
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/Azure/azure-container-networking/cns"
|
||||
"github.com/Azure/azure-container-networking/cns/configuration"
|
||||
"github.com/Azure/azure-container-networking/cns/logger"
|
||||
|
@ -202,6 +203,9 @@ func (k *K8sSWIFTv2Middleware) getIPConfig(ctx context.Context, podInfo cns.PodI
|
|||
MacAddress: interfaceInfo.MacAddress,
|
||||
NICType: nicType,
|
||||
SkipDefaultRoutes: false,
|
||||
HostPrimaryIPInfo: cns.HostIPInfo{
|
||||
Gateway: interfaceInfo.GatewayIP,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче