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
a8787dac
Unverified
Commit
a8787dac
authored
May 06, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
May 06, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76927 from mrkm4ntr/unnecessary-goroutine
Do not generate unnecessary goroutines
parents
e1d40da0
f8e81337
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
server.go
cmd/kube-proxy/app/server.go
+1
-1
resource_quota_controller_test.go
...ontroller/resourcequota/resource_quota_controller_test.go
+1
-1
csi_attacher_test.go
pkg/volume/csi/csi_attacher_test.go
+1
-1
csi_test.go
pkg/volume/csi/csi_test.go
+1
-1
plugins.go
pkg/volume/plugins.go
+1
-1
No files found.
cmd/kube-proxy/app/server.go
View file @
a8787dac
...
...
@@ -646,7 +646,7 @@ func (s *ProxyServer) Run() error {
// This has to start after the calls to NewServiceConfig and NewEndpointsConfig because those
// functions must configure their shared informer event handlers first.
go
informerFactory
.
Start
(
wait
.
NeverStop
)
informerFactory
.
Start
(
wait
.
NeverStop
)
// Birth Cry after the birth is successful
s
.
birthCry
()
...
...
pkg/controller/resourcequota/resource_quota_controller_test.go
View file @
a8787dac
...
...
@@ -127,7 +127,7 @@ func setupQuotaController(t *testing.T, kubeClient kubernetes.Interface, lister
t
.
Fatal
(
err
)
}
stop
:=
make
(
chan
struct
{})
go
informerFactory
.
Start
(
stop
)
informerFactory
.
Start
(
stop
)
return
quotaController
{
qc
,
stop
}
}
...
...
pkg/volume/csi/csi_attacher_test.go
View file @
a8787dac
...
...
@@ -1445,7 +1445,7 @@ func newTestWatchPlugin(t *testing.T, fakeClient *fakeclient.Clientset) (*csiPlu
factory
:=
informers
.
NewSharedInformerFactory
(
fakeClient
,
csiResyncPeriod
)
csiDriverInformer
:=
factory
.
Storage
()
.
V1beta1
()
.
CSIDrivers
()
csiDriverLister
:=
csiDriverInformer
.
Lister
()
go
factory
.
Start
(
wait
.
NeverStop
)
factory
.
Start
(
wait
.
NeverStop
)
host
:=
volumetest
.
NewFakeVolumeHostWithCSINodeName
(
tmpDir
,
...
...
pkg/volume/csi/csi_test.go
View file @
a8787dac
...
...
@@ -122,7 +122,7 @@ func TestCSI_VolumeAll(t *testing.T) {
fakeWatcher
:=
watch
.
NewRaceFreeFake
()
factory
:=
informers
.
NewSharedInformerFactory
(
client
,
csiResyncPeriod
)
go
factory
.
Start
(
wait
.
NeverStop
)
factory
.
Start
(
wait
.
NeverStop
)
host
:=
volumetest
.
NewFakeVolumeHostWithCSINodeName
(
tmpDir
,
...
...
pkg/volume/plugins.go
View file @
a8787dac
...
...
@@ -1034,7 +1034,7 @@ func (pm *VolumePluginMgr) Run(stopCh <-chan struct{}) {
// start informer for CSIDriver
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
CSIDriverRegistry
)
{
informerFactory
:=
kletHost
.
GetInformerFactory
()
go
informerFactory
.
Start
(
stopCh
)
informerFactory
.
Start
(
stopCh
)
}
}
}
...
...
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