google_container_regional_node_pools resource
Use the google_container_regional_node_pools InSpec audit resource to to test a Google Cloud RegionalNodePool resource.
Examples
describe google_container_regional_node_pools(project: 'chef-gcp-inspec', location: 'europe-west2', cluster: 'inspec-gcp-regional-cluster') do
its('initial_node_counts') { should include '1'}
end
Properties
Properties that can be accessed from the google_container_regional_node_pools resource:
See google_container_regional_node_pool for more detailed information.
names: an array ofgoogle_container_regional_node_poolnameconfigs: an array ofgoogle_container_regional_node_poolconfiginitial_node_counts: an array ofgoogle_container_regional_node_poolinitial_node_countstatuses: an array ofgoogle_container_regional_node_poolstatusstatus_messages: an array ofgoogle_container_regional_node_poolstatus_messageversions: an array ofgoogle_container_regional_node_poolversionautoscalings: an array ofgoogle_container_regional_node_poolautoscalingmanagements: an array ofgoogle_container_regional_node_poolmanagementmax_pods_constraints: an array ofgoogle_container_regional_node_poolmax_pods_constraintconditions: an array ofgoogle_container_regional_node_poolconditionspod_ipv4_cidr_sizes: an array ofgoogle_container_regional_node_poolpod_ipv4_cidr_sizeclusters: an array ofgoogle_container_regional_node_poolclusterlocations: an array ofgoogle_container_regional_node_poollocation
Filter criteria
This resource supports all of the above properties as filter criteria, which can be used
with where as a block or a method.
GCP permissions
Ensure the Kubernetes Engine API is enabled for the current project.