turbot/gcp_insights

Query: kubernetes_clusters_for_pubsub_topic

Usage

powerpipe query gcp_insights.query.kubernetes_clusters_for_pubsub_topic

SQL

select
c.id :: text as cluster_id
from
gcp_kubernetes_cluster c,
gcp_pubsub_topic t
where
t.self_link = $1
and c.notification_config is not null
and t.self_link like '%' || (c.notification_config -> 'pubsub' ->> 'topic') || '%';