mirror of https://github.com/k3s-io/k3s
linter doesn't actually run on windows, found these while getting it running on a windows machine
Signed-off-by: Luther Monson <luther.monson@gmail.com>pull/4849/head
parent
142b1d96f4
commit
66eeabbdfc
|
@ -16,9 +16,7 @@ import (
|
|||
"k8s.io/kubernetes/pkg/kubeapiserver/authorizer/modes"
|
||||
)
|
||||
|
||||
var (
|
||||
NetworkName string = "vxlan0"
|
||||
)
|
||||
var NetworkName = "vxlan0"
|
||||
|
||||
func checkRuntimeEndpoint(cfg *config.Agent, argsMap map[string]string) {
|
||||
if strings.HasPrefix(cfg.RuntimeSocket, windowsPrefix) {
|
||||
|
@ -39,7 +37,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
|
||||
}
|
||||
|
||||
|
@ -131,7 +129,7 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
|
|||
return argsMap
|
||||
}
|
||||
|
||||
func waitForManagementIp(networkName string) string {
|
||||
func waitForManagementIP(networkName string) string {
|
||||
for range time.Tick(time.Second * 5) {
|
||||
network, err := hcsshim.GetHNSNetworkByName(networkName)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue