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 * private_cluster_configs: an array of google_container_regional_cluster privateclusterconfig * cluster_ipv4_cidrs: an array of google_container_regional_cluster clusteripv4cidr * enable_tpus: an array of google_container_regional_cluster enabletpu * `tpuipv4cidrblocks: an array ofgooglecontainerregionalcluster` tpuipv4cidrblock * addons_configs: an array of google_container_regional_cluster addonsconfig * subnetworks: an array of `googlecontainerregionalclustersubnetwork *locations: an array ofgooglecontainerregionalclusterlocations *resourcelabels: an array ofgooglecontainerregionalcluster` resourcelabels * label_fingerprints: an array of google_container_regional_cluster labelfingerprint * `legacyabacs: an array ofgooglecontainerregionalcluster` legacyabac * network_policies: an array of google_container_regional_cluster networkpolicy * `defaultmaxpodsconstraints: an array ofgooglecontainerregionalcluster` defaultmaxpodsconstraint * ip_allocation_policies: an array of google_container_regional_cluster ipallocationpolicy * endpoints: an array of google_container_regional_cluster endpoint * initial_cluster_versions: an array of google_container_regional_cluster initialclusterversion * current_master_versions: an array of google_container_regional_cluster currentmasterversion * current_node_versions: an array of google_container_regional_cluster currentnodeversion * create_times: an array of google_container_regional_cluster createtime * statuses: an array of `googlecontainerregionalclusterstatus *statusmessages: an array ofgooglecontainerregionalclusterstatus_message *nodeipv4cidrsizes: an array ofgooglecontainerregionalclusternode_ipv4_cidr_size *servicesipv4cidrs: an array ofgooglecontainerregionalcluster` servicesipv4cidr * `currentnodecounts: an array ofgooglecontainerregionalclustercurrent_node_count *expiretimes: an array ofgooglecontainerregionalclusterexpire_time *conditions: an array ofgooglecontainerregionalclusterconditions *masterauthorizednetworksconfigs: an array ofgooglecontainerregionalcluster` masterauthorizednetworksconfig * locations: an array of google_container_regional_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.