Spec-Zone.ru › Chef 17

Ресурс google_compute_node_groups

[Редактировать на GitHub]

Синтаксис

Используется 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_group creation_timestamp
descriptions
массив из google_compute_node_group description
names
массив из google_compute_node_group name
node_templates
массив из google_compute_node_group node_template
sizes
массив из google_compute_node_group size
autoscaling_policies
(Только бета-версия) массив из google_compute_node_group autoscaling_policy zones
массив из google_compute_node_group zone

Критерии фильтрации

Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые можно использовать с 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/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API