turbot/gcp_compliance

Query: kubernetes_cluster_network_policy_installed

Usage

powerpipe query gcp_compliance.query.kubernetes_cluster_network_policy_installed

Steampipe Tables

SQL

select
self_link resource,
case
when network_policy ->> 'enabled' = 'true' then 'ok'
else 'alarm'
end as status,
case
when network_policy ->> 'enabled' = 'true' then title || ' Network policy is enabled.'
else title || ' Network policy is not enabled.'
end as reason
, location as location, project as project
from
gcp_kubernetes_cluster;

Controls

The query is being used by the following controls: