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 of
googlecontainerregionalcluster` masterauth
* logging_services
: an array of google_container_regional_cluster
loggingservice
* `monitoringservices: an array of
googlecontainerregionalcluster` 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 of
googlecontainerregionalcluster` tpuipv4cidrblock
* addons_configs
: an array of google_container_regional_cluster
addonsconfig
* subnetworks
: an array of `googlecontainerregionalclustersubnetwork
*
locations: an array of
googlecontainerregionalclusterlocations
*
resourcelabels: an array of
googlecontainerregionalcluster` resourcelabels
* label_fingerprints
: an array of google_container_regional_cluster
labelfingerprint
* `legacyabacs: an array of
googlecontainerregionalcluster` legacyabac
* network_policies
: an array of google_container_regional_cluster
networkpolicy
* `defaultmaxpodsconstraints: an array of
googlecontainerregionalcluster` 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 of
googlecontainerregionalclusterstatus_message
*
nodeipv4cidrsizes: an array of
googlecontainerregionalclusternode_ipv4_cidr_size
*
servicesipv4cidrs: an array of
googlecontainerregionalcluster` servicesipv4cidr
* `currentnodecounts: an array of
googlecontainerregionalclustercurrent_node_count
*
expiretimes: an array of
googlecontainerregionalclusterexpire_time
*
conditions: an array of
googlecontainerregionalclusterconditions
*
masterauthorizednetworksconfigs: an array of
googlecontainerregionalcluster` 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.