Commit 6a21ace6 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #48013 from FengyunPan/fix-federation-missing-close

Automatic merge from submit-queue (batch tested with PRs 47869, 48013, 48016, 48005) [Federation]Fix forgeting to close file **Release note**: ```release-note NONE ```
parents beb5b9dd 4c6f16b5
......@@ -343,6 +343,7 @@ func newControllerWithTestServer(f func(w http.ResponseWriter, r *http.Request),
if err != nil {
return nil, err
}
defer file.Close()
controller, err := newAdmissionController(file)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment