turbot/steampipe-mod-gcp-compliance

Control: Ensure Automatic node upgrades is enabled on Kubernetes Engine Clusters nodes

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.enable_auto_upgrade

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
self_link resource,
case
when np -> 'management' -> 'autoUpgrade' = 'true' then 'ok'
else 'alarm'
end as status,
case
when np -> 'management' -> 'autoUpgrade' = 'true' then title || ' Node pool auto upgrade enabled.'
else title || ' Node pool auto upgrade disabled.'
end as reason
, location as location, project as project
from
gcp_kubernetes_cluster,
jsonb_array_elements(node_pools) as np;

Tags