turbot/steampipe-mod-gcp-compliance

Control: GKE clusters should have resource labels

Description

This control ensures that GKE clusters have resource labels.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.kubernetes_cluster_with_resource_labels

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run gcp_compliance.control.kubernetes_cluster_with_resource_labels --share

SQL

This control uses a named query:

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;

Tags