Merge pull request #91160 from gaurav1086/kube_aggregator_fix_goroutine_leak

kube-aggregator: Fix goroutine leak
This commit is contained in:
Kubernetes Prow Robot 2020-06-15 05:28:11 -07:00 committed by GitHub
commit 17616aa9cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,7 +292,7 @@ func (c *AvailableConditionController) sync(key string) error {
discoveryURL.Path = "/apis/" + apiService.Spec.Group + "/" + apiService.Spec.Version
}
errCh := make(chan error)
errCh := make(chan error, 1)
go func() {
// be sure to check a URL that the aggregated API server is required to serve
newReq, err := http.NewRequest("GET", discoveryURL.String(), nil)