Ресурс 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 включен для текущего проекта.
© 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/