Export agent.NetworkName for Windows

Was made private in 4aca21a1f1 as there was no comment as to why it was exported.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson 2022-08-23 21:17:40 +00:00 committed by Brad Davidson
parent 3e394f8ec5
commit 7d6982d1fa

View File

@ -17,9 +17,11 @@ import (
"k8s.io/kubernetes/pkg/kubeapiserver/authorizer/modes"
)
// NetworkName may be overridden at runtime in downstream projects
var NetworkName = "vxlan0"
const (
socketPrefix = "npipe://"
networkName = "vxlan0"
)
func kubeProxyArgs(cfg *config.Agent) map[string]string {
@ -38,7 +40,7 @@ func kubeProxyArgs(cfg *config.Agent) map[string]string {
argsMap["hostname-override"] = cfg.NodeName
}
if sourceVip := waitForManagementIP(networkName); sourceVip != "" {
if sourceVip := waitForManagementIP(NetworkName); sourceVip != "" {
argsMap["source-vip"] = sourceVip
}