mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 14:23:37 +00:00
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 ```
This commit is contained in:
commit
6a21ace6d2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user