Control: GKE clusters private nodes should be configured
Description
This control ensures that GKE clusters private nodes are configured.
Usage
Run the control in your terminal:
powerpipe control run gcp_compliance.control.kubernetes_cluster_private_nodes_configuredSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_compliance.control.kubernetes_cluster_private_nodes_configured --shareSQL
This control uses a named query:
select  self_link resource,  case    when private_cluster_config ->> 'enablePrivateNodes' = 'false'      or private_cluster_config -> 'enablePrivateNodes' is null then 'alarm'    else 'ok'  end as status,  case    when private_cluster_config ->> 'enablePrivateNodes' = 'false'      or private_cluster_config -> 'enablePrivateNodes' is null then title || ' private nodes not configured.'    else title || ' private nodes configured.'  end as reason    , location as location, project as projectfrom  gcp_kubernetes_cluster;