Syntax

A google_container_regional_clusters is used to test a Google RegionalCluster resource

Examples

describe google_container_regional_clusters(project: 'chef-gcp-inspec', location: 'europe-west2') do
  its('count') { should be >= 1 }
  its('names') { should include 'inspec-gcp-regional-cluster' }
  its('initial_node_counts') { should include '1'}
end

Properties

Properties that can be accessed from the google_container_regional_clusters resource:

See googlecontainerregional_cluster.md for more detailed information * names: an array of google_container_regional_cluster name * descriptions: an array of google_container_regional_cluster description * initial_node_counts: an array of google_container_regional_cluster initialnodecount * node_configs: an array of google_container_regional_cluster nodeconfig * `masterauths: an array ofgooglecontainerregionalcluster` masterauth * logging_services: an array of google_container_regional_cluster loggingservice * `monitoringservices: an array ofgooglecontainerregionalcluster` monitoringservice * networks: an array of google_container_regional_cluster network * cluster_ipv4_cidrs: an array of google_container_regional_cluster clusteripv4cidr * addons_configs: an array of google_container_regional_cluster addonsconfig * subnetworks: an array of `googlecontainerregionalclustersubnetwork *endpoints: an array ofgooglecontainerregionalclusterendpoint *initialclusterversions: an array ofgooglecontainerregionalclusterinitial_cluster_version *currentmasterversions: an array ofgooglecontainerregionalcluster` currentmasterversion * `currentnodeversions: an array ofgooglecontainerregionalclustercurrent_node_version *createtimes: an array ofgooglecontainerregionalclustercreate_time *nodeipv4cidrsizes: an array ofgooglecontainerregionalclusternode_ipv4_cidr_size *servicesipv4cidrs: an array ofgooglecontainerregionalcluster` servicesipv4cidr * `currentnodecounts: an array ofgooglecontainerregionalclustercurrent_node_count *expiretimes: an array ofgooglecontainerregionalclusterexpire_time *locations: an array ofgooglecontainerregional_cluster` 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.