mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #91160 from gaurav1086/kube_aggregator_fix_goroutine_leak
kube-aggregator: Fix goroutine leak
This commit is contained in:
commit
17616aa9cc
@ -292,7 +292,7 @@ func (c *AvailableConditionController) sync(key string) error {
|
|||||||
discoveryURL.Path = "/apis/" + apiService.Spec.Group + "/" + apiService.Spec.Version
|
discoveryURL.Path = "/apis/" + apiService.Spec.Group + "/" + apiService.Spec.Version
|
||||||
}
|
}
|
||||||
|
|
||||||
errCh := make(chan error)
|
errCh := make(chan error, 1)
|
||||||
go func() {
|
go func() {
|
||||||
// be sure to check a URL that the aggregated API server is required to serve
|
// be sure to check a URL that the aggregated API server is required to serve
|
||||||
newReq, err := http.NewRequest("GET", discoveryURL.String(), nil)
|
newReq, err := http.NewRequest("GET", discoveryURL.String(), nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user