Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Latest commit

 

History

History
44 lines (35 loc) · 1.94 KB

google_container_node_pools.md

File metadata and controls

44 lines (35 loc) · 1.94 KB
title platform
About the google_container_node_pools resource
gcp

Syntax

A google_container_node_pools is used to test a Google NodePool resource

Beta Resource

This resource has beta fields available. To retrieve these fields, include beta: true in the constructor for the resource

Examples

describe google_container_node_pools(project: 'chef-gcp-inspec', location: 'europe-west2-a', cluster_name: 'gcp-inspec-kube-cluster') do
  its('initial_node_counts') { should include '1'}
end

Properties

Properties that can be accessed from the google_container_node_pools resource:

See google_container_node_pool.md for more detailed information

  • node_pool_names: an array of google_container_node_pool name
  • configs: an array of google_container_node_pool config
  • initial_node_counts: an array of google_container_node_pool initial_node_count
  • node_pool_statuses: an array of google_container_node_pool status
  • status_messages: an array of google_container_node_pool status_message
  • versions: an array of google_container_node_pool version
  • autoscalings: an array of google_container_node_pool autoscaling
  • managements: an array of google_container_node_pool management
  • max_pods_constraints: an array of google_container_node_pool max_pods_constraint
  • conditions: an array of google_container_node_pool conditions
  • pod_ipv4_cidr_sizes: an array of google_container_node_pool pod_ipv4_cidr_size
  • clusters: an array of google_container_node_pool cluster
  • locations: an array of google_container_node_pool location

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.