Ресурс google_compute_node_groups
Синтаксис
Используется google_compute_node_groups для проверки ресурса Google NodeGroup.
Ресурс бета-версии
Этот ресурс содержит поля бета-версии. Чтобы получить доступ к этим полям, включите beta: true в конструктор ресурса.
Примеры
describe google_compute_node_groups(project: 'chef-gcp-inspec', zone: 'zone') do
it { should exist }
its('descriptions') { should include 'A description of the node group' }
its('sizes') { should include '0' }
its('names') { should include 'inspec-node-group' }
end
Свойства
Свойства, к которым можно получить доступ из ресурса google_compute_node_groups:
Дополнительную информацию см. в ресурсе google_compute_node_group.
creation_timestamps- массив из
google_compute_node_groupcreation_timestamp descriptions- массив из
google_compute_node_groupdescription names- массив из
google_compute_node_groupname node_templates- массив из
google_compute_node_groupnode_template sizes- массив из
google_compute_node_groupsize autoscaling_policies- (Только бета-версия) массив из
google_compute_node_groupautoscaling_policyzones - массив из
google_compute_node_groupzone
Критерии фильтрации
Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые можно использовать с where в качестве блока или метода.
Разрешения GCP
Убедитесь, что для текущего проекта включен API Compute Engine по адресу Compute Engine API.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_compute_node_groups/