turbot/kubernetes_insights

Query: pods_for_service_account

Usage

powerpipe query kubernetes_insights.query.pods_for_service_account

SQL

select
p.uid as uid
from
kubernetes_service_account as s,
kubernetes_pod as p
where
p.service_account_name = s.name
and s.context_name = p.context_name
and s.uid = $1;