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
44e6a566
Commit
44e6a566
authored
Sep 09, 2015
by
gmarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alphabetize structs in cmd/kubelet/app/server.go
parent
3f8953e2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
8 deletions
+44
-8
integration.go
cmd/integration/integration.go
+44
-8
server.go
cmd/kubelet/app/server.go
+0
-0
No files found.
cmd/integration/integration.go
View file @
44e6a566
...
...
@@ -204,11 +204,29 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string
configFilePath
:=
makeTempDirOrDie
(
"config"
,
testRootDir
)
glog
.
Infof
(
"Using %s as root dir for kubelet #1"
,
testRootDir
)
fakeDocker1
.
VersionInfo
=
docker
.
Env
{
"ApiVersion=1.15"
}
kcfg
:=
kubeletapp
.
SimpleKubelet
(
cl
,
&
fakeDocker1
,
"localhost"
,
testRootDir
,
firstManifestURL
,
"127.0.0.1"
,
10250
/* KubeletPort */
,
0
/* ReadOnlyPort */
,
api
.
NamespaceDefault
,
empty_dir
.
ProbeVolumePlugins
(),
nil
,
cadvisorInterface
,
configFilePath
,
nil
,
kubecontainer
.
FakeOS
{},
1
*
time
.
Second
,
/* FileCheckFrequency */
1
*
time
.
Second
/* HTTPCheckFrequency */
,
10
*
time
.
Second
/* MinimumGCAge */
,
3
*
time
.
Second
,
/* NodeStatusUpdateFrequency */
kcfg
:=
kubeletapp
.
SimpleKubelet
(
cl
,
&
fakeDocker1
,
"localhost"
,
testRootDir
,
firstManifestURL
,
"127.0.0.1"
,
10250
,
/* KubeletPort */
0
,
/* ReadOnlyPort */
api
.
NamespaceDefault
,
empty_dir
.
ProbeVolumePlugins
(),
nil
,
cadvisorInterface
,
configFilePath
,
nil
,
kubecontainer
.
FakeOS
{},
1
*
time
.
Second
,
/* FileCheckFrequency */
1
*
time
.
Second
,
/* HTTPCheckFrequency */
10
*
time
.
Second
,
/* MinimumGCAge */
3
*
time
.
Second
,
/* NodeStatusUpdateFrequency */
10
*
time
.
Second
/* SyncFrequency */
)
kubeletapp
.
RunKubelet
(
kcfg
,
nil
)
// Kubelet (machine)
// Create a second kubelet so that the guestbook example's two redis slaves both
...
...
@@ -216,11 +234,29 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string
testRootDir
=
makeTempDirOrDie
(
"kubelet_integ_2."
,
""
)
glog
.
Infof
(
"Using %s as root dir for kubelet #2"
,
testRootDir
)
fakeDocker2
.
VersionInfo
=
docker
.
Env
{
"ApiVersion=1.15"
}
kcfg
=
kubeletapp
.
SimpleKubelet
(
cl
,
&
fakeDocker2
,
"127.0.0.1"
,
testRootDir
,
secondManifestURL
,
"127.0.0.1"
,
10251
/* KubeletPort */
,
0
/* ReadOnlyPort */
,
api
.
NamespaceDefault
,
empty_dir
.
ProbeVolumePlugins
(),
nil
,
cadvisorInterface
,
""
,
nil
,
kubecontainer
.
FakeOS
{},
1
*
time
.
Second
,
/* FileCheckFrequency */
1
*
time
.
Second
/* HTTPCheckFrequency */
,
10
*
time
.
Second
/* MinimumGCAge */
,
3
*
time
.
Second
,
/* NodeStatusUpdateFrequency */
kcfg
=
kubeletapp
.
SimpleKubelet
(
cl
,
&
fakeDocker2
,
"127.0.0.1"
,
testRootDir
,
secondManifestURL
,
"127.0.0.1"
,
10251
,
/* KubeletPort */
0
,
/* ReadOnlyPort */
api
.
NamespaceDefault
,
empty_dir
.
ProbeVolumePlugins
(),
nil
,
cadvisorInterface
,
""
,
nil
,
kubecontainer
.
FakeOS
{},
1
*
time
.
Second
,
/* FileCheckFrequency */
1
*
time
.
Second
,
/* HTTPCheckFrequency */
10
*
time
.
Second
,
/* MinimumGCAge */
3
*
time
.
Second
,
/* NodeStatusUpdateFrequency */
10
*
time
.
Second
/* SyncFrequency */
)
kubeletapp
.
RunKubelet
(
kcfg
,
nil
)
return
apiServer
.
URL
,
configFilePath
}
...
...
cmd/kubelet/app/server.go
View file @
44e6a566
This diff is collapsed.
Click to expand it.
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