def METHOD_NAME(self):
    """
    Entrypoint for kubernetes webhook
    """
    req = self.get_request_body()
    log.info(req)
    try:
        req = json.loads(req)
    except Exception as e:
        self.send_response(400)
        self.send_header("Content-Type", "application/json")
        self.end_headers()
        self.wfile.write(json.dumps({"error": str(e)}).encode("utf-8"))
        return
    failed_policies, warn_policies, patches = self.run_policies(req)
    self.send_response(200)
    self.send_header("Content-Type", "application/json")
    self.end_headers()
    if patches:
        patches = base64.b64encode(json.dumps(patches).encode("utf-8")).decode()
    response = self.create_admission_response(
        uid=req["request"]["uid"],
        failed_policies=failed_policies,
        warn_policies=warn_policies,
        patches=patches,
    )
    log.info(response)
    self.wfile.write(response.encode("utf-8"))