Skip to content

Commit

Permalink
WIP: try force-termination of admission webhooks in tests — will it h…
Browse files Browse the repository at this point in the history
…elp?

Signed-off-by: Sergey Vasilyev <[email protected]>
  • Loading branch information
nolar committed Oct 15, 2023
1 parent de08e16 commit 63a8afa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kopf/_kits/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ async def _serve_fn(request: aiohttp.web.Request) -> aiohttp.web.Response:
# multi-threaded sockets are not really used -- high load is not expected for webhooks.
addr = self.addr or None # None is aiohttp's "any interface"
port = self.port or self._allocate_free_port()
site = aiohttp.web.TCPSite(runner, addr, port, ssl_context=context, reuse_port=True)
site = aiohttp.web.TCPSite(runner, addr, port, ssl_context=context, reuse_port=True,
shutdown_timeout=0)
await site.start()

# Log with the actual URL: normalised, with hostname/port set.
Expand Down

0 comments on commit 63a8afa

Please sign in to comment.