CKV_GCP_25 - BaseResourceValueCheck class implementation (fix)
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
from checkov.common.models.enums import CheckCategories
+from checkov.common.models.consts import ANY_VALUE
class GKEPodSecurityPolicyEnabled(BaseResourceValueCheck):
@@ -10,14 +11,12 @@ class GKEPodSecurityPolicyEnabled(BaseResourceValueCheck):
categories = [CheckCategories.KUBERNETES]
super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
- # def scan_resource_conf(self, conf):
- # if conf.get('private_cluster_config'):
- # return CheckResult.PASSED
- # return CheckResult.FAILED
-
def get_inspected_key(self):
return 'private_cluster_config'
+ def get_expected_values(self):
+ return [ANY_VALUE]
+
