🐛 Fix webhook write response error for broken HTTP connection #1930
[APPROVALNOTIFIER] This PR is APPROVED
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing
I believe that if the apiserver container/pod has been restarted or recreated during the request to webhook, then webhook will get the broken pipe error when it tries to write response back to the connection. But I'm not sure in which cases apiserver will close or lose the connection if it remains running.