Skip to content

Commit

Permalink
It's the callers responsibility to close Body
Browse files Browse the repository at this point in the history
Signed-off-by: Cornelius Weig <[email protected]>
  • Loading branch information
Cornelius Weig committed Feb 4, 2019
1 parent 4fd36f4 commit cfe18e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/webhook/kubernetes/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func WaitForDeploymentToStabilize(d *appsv1.Deployment, ip string) error {
if err != nil {
return false, nil
}
defer resp.Body.Close()
return resp.StatusCode == http.StatusOK, nil
})
}
Expand Down

0 comments on commit cfe18e8

Please sign in to comment.