Skip to content

Commit 17616aa

Browse files
authored
Merge pull request kubernetes#91160 from gaurav1086/kube_aggregator_fix_goroutine_leak
kube-aggregator: Fix goroutine leak
2 parents 59033b5 + c5f73de commit 17616aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/kube-aggregator/pkg/controllers/status/available_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func (c *AvailableConditionController) sync(key string) error {
292292
discoveryURL.Path = "/apis/" + apiService.Spec.Group + "/" + apiService.Spec.Version
293293
}
294294

295-
errCh := make(chan error)
295+
errCh := make(chan error, 1)
296296
go func() {
297297
// be sure to check a URL that the aggregated API server is required to serve
298298
newReq, err := http.NewRequest("GET", discoveryURL.String(), nil)

0 commit comments

Comments
 (0)