mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
[Federation]Fix forgeting to close file
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user