turbot/gcp_insights

Query: kubernetes_clusters_for_compute_network

Usage

powerpipe query gcp_insights.query.kubernetes_clusters_for_compute_network

SQL

select
c.id::text || '/' || c.project as cluster_id
from
gcp_kubernetes_cluster c,
gcp_compute_network n
where
c.network = n.name
and c.project = n.project
and n.id = (split_part($1, '/', 1))::bigint;