prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Deprecate CKV_GCP_67
  **Describe the issue**
  
  CKV_GCP_67: https://docs.bridgecrew.io/docs/ensure-legacy-compute-engine-instance-metadata-apis-are-disabled
  
  https://cloud.google.com/kubernetes-engine/docs/how-to/hardening-your-cluster#protect_node_metadata
  
  As per this article:  `The v0.1 and v1beta1 Compute Engine metadata server endpoints were deprecated and shutdown on September 30, 2020.`
  
  </issue>
  <code>
  [start of checkov/terraform/checks/resource/gcp/GKELegacyInstanceMetadataDisabled.py]
  1 from checkov.common.models.enums import CheckResult, CheckCategories
  2 from checkov.common.util.type_forcers import force_float
  3 from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
  4 
  5 
  6 class GKELegacyInstanceMetadataDisabled(BaseResourceValueCheck):
  7 
  8     def __init__(self):
  9         name = "Ensure legacy Compute Engine instance metadata APIs are Disabled"
  10         id = "CKV_GCP_67"
  11         supported_resources = ['google_container_cluster']
  12         categories = [CheckCategories.KUBERNETES]
  13         super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
  14 
  15     def scan_resource_conf(self, conf):
  16         """
  17         looks for min_master_version =1.12 which ensures that legacy metadata endpoints are disabled
  18         https://www.terraform.io/docs/providers/google/r/compute_ssl_policy.html
  19         :param conf: google_container_cluster configuration
  20         :return: <CheckResult>
  21         """
  22         if 'min_master_version' in conf:
  23             min_master_version = force_float(conf.get('min_master_version')[0])
  24             if min_master_version and min_master_version >= 1.12:
  25                 return CheckResult.PASSED
  26 
  27         return CheckResult.FAILED
  28 
  29     def get_inspected_key(self):
  30         return 'min_master_version'
  31 
  32     def get_expected_value(self):
  33         return "1.12"
  34 
  35 
  36 check = GKELegacyInstanceMetadataDisabled()
  37
  [end of checkov/terraform/checks/resource/gcp/GKELegacyInstanceMetadataDisabled.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/checkov/terraform/checks/resource/gcp/GKELegacyInstanceMetadataDisabled.py b/checkov/terraform/checks/resource/gcp/GKELegacyInstanceMetadataDisabled.py
  deleted file mode 100644
  --- a/checkov/terraform/checks/resource/gcp/GKELegacyInstanceMetadataDisabled.py
  +++ /dev/null
  @@ -1,36 +0,0 @@
  -from checkov.common.models.enums import CheckResult, CheckCategories
  -from checkov.common.util.type_forcers import force_float
  -from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
  -
  -
  -class GKELegacyInstanceMetadataDisabled(BaseResourceValueCheck):
  -
  -    def __init__(self):
  -        name = "Ensure legacy Compute Engine instance metadata APIs are Disabled"
  -        id = "CKV_GCP_67"
  -        supported_resources = ['google_container_cluster']
  -        categories = [CheckCategories.KUBERNETES]
  -        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
  -
  -    def scan_resource_conf(self, conf):
  -        """
  -        looks for min_master_version =1.12 which ensures that legacy metadata endpoints are disabled
  -        https://www.terraform.io/docs/providers/google/r/compute_ssl_policy.html
  -        :param conf: google_container_cluster configuration
  -        :return: <CheckResult>
  -        """
  -        if 'min_master_version' in conf:
  -            min_master_version = force_float(conf.get('min_master_version')[0])
  -            if min_master_version and min_master_version >= 1.12:
  -                return CheckResult.PASSED
  -
  -        return CheckResult.FAILED
  -
  -    def get_inspected_key(self):
  -        return 'min_master_version'
  -
  -    def get_expected_value(self):
  -        return "1.12"
  -
  -
  -check = GKELegacyInstanceMetadataDisabled()
  
verification_info: {"golden_diff": "diff --git a/checkov/terraform/checks/resource/gcp/GKELegacyInstanceMetadataDisabled.py b/checkov/terraform/checks/resource/gcp/GKELegacyInstanceMetadataDisabled.py\ndeleted file mode 100644\n--- a/checkov/terraform/checks/resource/gcp/GKELegacyInstanceMetadataDisabled.py\n+++ /dev/null\n@@ -1,36 +0,0 @@\n-from checkov.common.models.enums import CheckResult, CheckCategories\n-from checkov.common.util.type_forcers import force_float\n-from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n-\n-\n-class GKELegacyInstanceMetadataDisabled(BaseResourceValueCheck):\n-\n-    def __init__(self):\n-        name = \"Ensure legacy Compute Engine instance metadata APIs are Disabled\"\n-        id = \"CKV_GCP_67\"\n-        supported_resources = ['google_container_cluster']\n-        categories = [CheckCategories.KUBERNETES]\n-        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n-\n-    def scan_resource_conf(self, conf):\n-        \"\"\"\n-        looks for min_master_version =1.12 which ensures that legacy metadata endpoints are disabled\n-        https://www.terraform.io/docs/providers/google/r/compute_ssl_policy.html\n-        :param conf: google_container_cluster configuration\n-        :return: <CheckResult>\n-        \"\"\"\n-        if 'min_master_version' in conf:\n-            min_master_version = force_float(conf.get('min_master_version')[0])\n-            if min_master_version and min_master_version >= 1.12:\n-                return CheckResult.PASSED\n-\n-        return CheckResult.FAILED\n-\n-    def get_inspected_key(self):\n-        return 'min_master_version'\n-\n-    def get_expected_value(self):\n-        return \"1.12\"\n-\n-\n-check = GKELegacyInstanceMetadataDisabled()\n", "issue": "Deprecate CKV_GCP_67\n**Describe the issue**\r\n\r\nCKV_GCP_67: https://docs.bridgecrew.io/docs/ensure-legacy-compute-engine-instance-metadata-apis-are-disabled\r\n\r\nhttps://cloud.google.com/kubernetes-engine/docs/how-to/hardening-your-cluster#protect_node_metadata\r\n\r\nAs per this article:  `The v0.1 and v1beta1 Compute Engine metadata server endpoints were deprecated and shutdown on September 30, 2020.`\n", "before_files": [{"content": "from checkov.common.models.enums import CheckResult, CheckCategories\nfrom checkov.common.util.type_forcers import force_float\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n\n\nclass GKELegacyInstanceMetadataDisabled(BaseResourceValueCheck):\n\n    def __init__(self):\n        name = \"Ensure legacy Compute Engine instance metadata APIs are Disabled\"\n        id = \"CKV_GCP_67\"\n        supported_resources = ['google_container_cluster']\n        categories = [CheckCategories.KUBERNETES]\n        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n\n    def scan_resource_conf(self, conf):\n        \"\"\"\n        looks for min_master_version =1.12 which ensures that legacy metadata endpoints are disabled\n        https://www.terraform.io/docs/providers/google/r/compute_ssl_policy.html\n        :param conf: google_container_cluster configuration\n        :return: <CheckResult>\n        \"\"\"\n        if 'min_master_version' in conf:\n            min_master_version = force_float(conf.get('min_master_version')[0])\n            if min_master_version and min_master_version >= 1.12:\n                return CheckResult.PASSED\n\n        return CheckResult.FAILED\n\n    def get_inspected_key(self):\n        return 'min_master_version'\n\n    def get_expected_value(self):\n        return \"1.12\"\n\n\ncheck = GKELegacyInstanceMetadataDisabled()\n", "path": "checkov/terraform/checks/resource/gcp/GKELegacyInstanceMetadataDisabled.py"}]}