Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1bc0684f
Commit
1bc0684f
authored
Nov 14, 2022
by
Manuel Buil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove stuff which belongs in the windows executor implementation
Signed-off-by:
Manuel Buil
<
mbuil@suse.com
>
parent
3310c040
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
25 deletions
+1
-25
go.mod
go.mod
+1
-1
agent_windows.go
pkg/daemons/agent/agent_windows.go
+0
-24
No files found.
go.mod
View file @
1bc0684f
...
@@ -66,7 +66,6 @@ replace (
...
@@ -66,7 +66,6 @@ replace (
)
)
require (
require (
github.com/Microsoft/hcsshim v0.9.2
github.com/Mirantis/cri-dockerd v0.0.0-00010101000000-000000000000
github.com/Mirantis/cri-dockerd v0.0.0-00010101000000-000000000000
github.com/cloudnativelabs/kube-router v1.3.2
github.com/cloudnativelabs/kube-router v1.3.2
github.com/containerd/cgroups v1.0.3
github.com/containerd/cgroups v1.0.3
...
@@ -160,6 +159,7 @@ require (
...
@@ -160,6 +159,7 @@ require (
github.com/JeffAshton/win_pdh v0.0.0-20161109143554-76bb4ee9f0ab // indirect
github.com/JeffAshton/win_pdh v0.0.0-20161109143554-76bb4ee9f0ab // indirect
github.com/MakeNowJust/heredoc v1.0.0 // indirect
github.com/MakeNowJust/heredoc v1.0.0 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/Microsoft/hcsshim v0.9.2 // indirect
github.com/NYTimes/gziphandler v1.1.1 // indirect
github.com/NYTimes/gziphandler v1.1.1 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
...
...
pkg/daemons/agent/agent_windows.go
View file @
1bc0684f
...
@@ -7,9 +7,7 @@ import (
...
@@ -7,9 +7,7 @@ import (
"os"
"os"
"path/filepath"
"path/filepath"
"strings"
"strings"
"time"
"github.com/Microsoft/hcsshim"
"github.com/k3s-io/k3s/pkg/daemons/config"
"github.com/k3s-io/k3s/pkg/daemons/config"
"github.com/k3s-io/k3s/pkg/util"
"github.com/k3s-io/k3s/pkg/util"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
...
@@ -17,9 +15,6 @@ import (
...
@@ -17,9 +15,6 @@ import (
"k8s.io/kubernetes/pkg/kubeapiserver/authorizer/modes"
"k8s.io/kubernetes/pkg/kubeapiserver/authorizer/modes"
)
)
// NetworkName may be overridden at runtime in downstream projects
var
NetworkName
=
"vxlan0"
const
(
const
(
socketPrefix
=
"npipe://"
socketPrefix
=
"npipe://"
)
)
...
@@ -40,10 +35,6 @@ func kubeProxyArgs(cfg *config.Agent) map[string]string {
...
@@ -40,10 +35,6 @@ func kubeProxyArgs(cfg *config.Agent) map[string]string {
argsMap
[
"hostname-override"
]
=
cfg
.
NodeName
argsMap
[
"hostname-override"
]
=
cfg
.
NodeName
}
}
if
sourceVip
:=
waitForManagementIP
(
NetworkName
);
sourceVip
!=
""
{
argsMap
[
"source-vip"
]
=
sourceVip
}
return
argsMap
return
argsMap
}
}
...
@@ -133,18 +124,3 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
...
@@ -133,18 +124,3 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
}
}
return
argsMap
return
argsMap
}
}
func
waitForManagementIP
(
networkName
string
)
string
{
for
range
time
.
Tick
(
time
.
Second
*
5
)
{
network
,
err
:=
hcsshim
.
GetHNSNetworkByName
(
networkName
)
if
err
!=
nil
{
logrus
.
WithError
(
err
)
.
Warning
(
"can't find HNS network, retrying"
,
networkName
)
continue
}
if
network
.
ManagementIP
==
""
{
continue
}
return
network
.
ManagementIP
}
return
""
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment