turbot/gcp_compliance

Query: kubernetes_cluster_auto_upgrade_enabled

Usage

powerpipe query gcp_compliance.query.kubernetes_cluster_auto_upgrade_enabled

Steampipe Tables

SQL

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;

Controls

The query is being used by the following controls: