turbot/gcp_compliance

Query: kubernetes_cluster_legacy_endpoints_disabled

Usage

powerpipe query gcp_compliance.query.kubernetes_cluster_legacy_endpoints_disabled

Steampipe Tables

SQL

select
self_link resource,
case
when node_config -> 'Metadata' ->> 'disable-legacy-endpoints' = 'true' then 'ok'
else 'alarm'
end as status,
case
when node_config -> 'Metadata' ->> 'disable-legacy-endpoints' = 'true' then title || ' legacy endpoints disabled.'
else title || ' legacy endpoints enabled.'
end as reason
, location as location, project as project
from
gcp_kubernetes_cluster;

Controls

The query is being used by the following controls: