turbot/kubernetes_compliance

Query: service_no_tiller_deployed

Usage

powerpipe query kubernetes_compliance.query.service_no_tiller_deployed

Steampipe Tables

SQL

select
coalesce(uid, concat(path, ':', start_line)) as resource,
name,
case
when labels ->> 'app' = 'helm' or labels ->> 'name' = 'tiller' then 'alarm'
else 'ok'
end as status,
case
when labels ->> 'app' = 'helm' or labels ->> 'name' = 'tiller' then name || ' has tiller deployed.'
else name || ' does not have tiller deployed.'
end as reason
, coalesce(context_name, '') as context_name, namespace, source_type, coalesce(path || ':' || start_line || '-' || end_line, '') as path
from
kubernetes_service;

Controls

The query is being used by the following controls: