diff --git a/pkg/policies/opa/rego/gcp/google_container_node_pool/cosNodeImageUsed.rego b/pkg/policies/opa/rego/gcp/google_container_node_pool/cosNodeImageUsed.rego index e427d5ca7..308bddee8 100755 --- a/pkg/policies/opa/rego/gcp/google_container_node_pool/cosNodeImageUsed.rego +++ b/pkg/policies/opa/rego/gcp/google_container_node_pool/cosNodeImageUsed.rego @@ -2,6 +2,6 @@ package accurics cosNodeImageUsed[api.id]{ api := input.google_container_node_pool[_] - node := api.config.node_config[_] - node.image_type != "cos" -} \ No newline at end of file + node := api.config.node_config[_] + not startswith(lower(node.image_type), "cos") +}