turbot/kubernetes_insights

Query: daemonsets_for_pod

Usage

powerpipe query kubernetes_insights.query.daemonsets_for_pod

SQL

select
d.uid as uid
from
kubernetes_daemonset as d,
kubernetes_pod as p,
jsonb_array_elements(p.owner_references) as pod_owner
where
pod_owner ->> 'uid' = d.uid
and p.context_name = d.context_name
and p.uid = $1;