turbot/kubernetes_insights

Query: service_account_default_namespace

Usage

powerpipe query kubernetes_insights.query.service_account_default_namespace

SQL

select
'Namespace' as label,
initcap(namespace) as value,
case when namespace = 'default' then 'alert' else 'ok' end as type,
n.uid as "UID"
from
kubernetes_service_account as r,
kubernetes_namespace as n
where
n.name = r.namespace
and n.context_name = r.context_name
and r.uid = $1;

Params

ArgsNameDefaultDescriptionVariable
$1uid

    Dashboards

    The query is used in the dashboards: