turbot/gcp_compliance

Query: kubernetes_cluster_with_resource_labels

Usage

powerpipe query gcp_compliance.query.kubernetes_cluster_with_resource_labels

Steampipe Tables

SQL

select
self_link resource,
case
when resource_labels is null then 'alarm'
else 'ok'
end as status,
case
when resource_labels is null then title || ' does not have resource labels.'
else title || ' have resource labels.'
end as reason
, location as location, project as project
from
gcp_kubernetes_cluster;

Controls

The query is being used by the following controls: