Skip to content

Commit

Permalink
Merge branch 'main' into CHEF-7205-v1-MAGIC-MODULE-compute_v1-Reserva…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
sa-progress authored Jun 24, 2024
2 parents 8db78c2 + b3f4a77 commit fa4f76e
Show file tree
Hide file tree
Showing 160 changed files with 8,094 additions and 6 deletions.
24 changes: 22 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
# Change Log

<!-- latest_release 1.11.114 -->
<!-- latest_release 1.11.118 -->
## [v1.11.118](https://github.com/inspec/inspec-gcp/tree/v1.11.118) (2024-06-20)

#### Merged Pull Requests
- CHEF-12245-MAGIC-MODULE-dataproc_v1-Projects__regions__autoscalingPolicy - Resource Implementation [#632](https://github.com/inspec/inspec-gcp/pull/632) ([sa-progress](https://github.com/sa-progress))
<!-- latest_release -->

## [v1.11.117](https://github.com/inspec/inspec-gcp/tree/v1.11.117) (2024-06-20)

#### Merged Pull Requests
- CHEF-12244-MAGIC-MODULE-Dataproc Workflow Template - Resource Implementation [#631](https://github.com/inspec/inspec-gcp/pull/631) ([sa-progress](https://github.com/sa-progress))

## [v1.11.116](https://github.com/inspec/inspec-gcp/tree/v1.11.116) (2024-06-17)

#### Merged Pull Requests
- CHEF-7348-ORG-MAGIC-MODULE-orgpolicy-Folders__policy - Resource Implementation [#556](https://github.com/inspec/inspec-gcp/pull/556) ([sa-progress](https://github.com/sa-progress))

## [v1.11.115](https://github.com/inspec/inspec-gcp/tree/v1.11.115) (2024-06-11)

#### Merged Pull Requests
- CHEF-7347-V3-MAGIC-MODULE-orgpolicy_v2-Folders__constraint - Resource Implementation [#626](https://github.com/inspec/inspec-gcp/pull/626) ([sa-progress](https://github.com/sa-progress))

## [v1.11.114](https://github.com/inspec/inspec-gcp/tree/v1.11.114) (2024-06-05)

#### Merged Pull Requests
- CHEF-7352-MAGIC-MODULE-orgpolicy-Projects__policy - Resource Implementation [#554](https://github.com/inspec/inspec-gcp/pull/554) ([sa-progress](https://github.com/sa-progress))
<!-- latest_release -->

## [v1.11.113](https://github.com/inspec/inspec-gcp/tree/v1.11.113) (2024-05-30)

Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ The following resources are available in the InSpec GCP Profile
| [google_container_node_pool](docs/resources/google_container_node_pool.md) | [google_container_node_pools](docs/resources/google_container_node_pools.md) |
| [google_container_server_config](docs/resources/google_container_server_config.md) | No Plural Resource |
| [google_dataflow_project_location_job](docs/resources/google_dataflow_project_location_job.md) | [google_dataflow_project_location_jobs](docs/resources/google_dataflow_project_location_jobs.md) |
| [google_dataproc_autoscaling_policy](docs/resources/google_dataproc_autoscaling_policy.md) | [google_dataproc_autoscaling_policies](docs/resources/google_dataproc_autoscaling_policies.md) |
| [google_dataproc_cluster](docs/resources/google_dataproc_cluster.md) | [google_dataproc_clusters](docs/resources/google_dataproc_clusters.md) |
| [google_dataproc_workflow_template](docs/resources/google_dataproc_workflow_template.md) | [google_dataproc_workflow_templates](docs/resources/google_dataproc_workflow_templates.md) |
| [google_dns_managed_zone](docs/resources/google_dns_managed_zone.md) | [google_dns_managed_zones](docs/resources/google_dns_managed_zones.md) |
| [google_dns_resource_record_set](docs/resources/google_dns_resource_record_set.md) | [google_dns_resource_record_sets](docs/resources/google_dns_resource_record_sets.md) |
| [google_dlp_dt](docs/resources/google_dlp_dt.md) | [google_dlp_dts](docs/resources/google_dlp_dts.md)
Expand Down Expand Up @@ -317,8 +319,12 @@ The following resources are available in the InSpec GCP Profile
| [google_memcache_instance](docs/resources/google_memcache_instance.md) | [google_memcache_instances](docs/resources/google_memcache_instances.md) |
| [google_ml_engine_model](docs/resources/google_ml_engine_model.md) | [google_ml_engine_models](docs/resources/google_ml_engine_models.md) |
| [google_organization](docs/resources/google_organization.md) | [google_organizations](docs/resources/google_organizations.md) |
| [google_orgpolicy_organization_policy](docs/resources/google_orgpolicy_organization_policy.md) | [google_orgpolicy_organization_policies](docs/resources/google_orgpolicy_organization_policies.md) |
| No Singular Resource | [google_orgpolicy_folder_constraints](docs/resources/google_orgpolicy_folder_constraints.md) |
| No Singular Resource | [google_orgpolicy_organization_constraints](docs/resources/google_orgpolicy_project_constraints.md) |
| No Singular Resource | [google_orgpolicy_project_constraints](docs/resources/google_orgpolicy_project_constraints.md) |
| [google_orgpolicy_folder_policy](docs/resources/google_orgpolicy_folder_policy.md) | [google_orgpolicy_folder_policies](docs/resources/google_orgpolicy_folder_policies.md) |
| [google_orgpolicy_organization_policy](docs/resources/google_orgpolicy_organization_policy.md) | [google_orgpolicy_organization_policies](docs/resources/google_orgpolicy_organization_policies.md) |
| [google_orgpolicy_project_policy](docs/resources/google_orgpolicy_project_policy.md) | [google_orgpolicy_project_policies](docs/resources/google_orgpolicy_project_policies.md) |
| [google_organization_iam_binding](docs/resources/google_organization_iam_binding.md) | No Plural Resource |
| [google_organization_iam_policy](docs/resources/google_organization_iam_policy.md) | No Plural Resource |
| [google_organization_policy](docs/resources/google_organization_policy.md) | No Plural Resource |
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.114
1.11.118
35 changes: 35 additions & 0 deletions docs/resources/google_dataproc_autoscaling_policies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: "google_dataproc_autoscaling_policies Resource"
platform: "gcp"
---

## Syntax
A `google_dataproc_autoscaling_policies` is used to test a Google ProjectRegionAutoscalingPolicy resource

## Examples
```
describe google_dataproc_autoscaling_policies(parent: 'value_parent') do
it { should exist }
its('ids') { should include 'value_id' }
its('names') { should include 'value_name' }
end
```

## Properties
Properties that can be accessed from the `google_dataproc_autoscaling_policies` resource:

See [google_dataproc_autoscaling_policy.md](google_dataproc_autoscaling_policy.md) for more detailed information
* `ids`: an array of `google_dataproc_autoscaling_policy` id
* `names`: an array of `google_dataproc_autoscaling_policy` name
* `basic_algorithms`: an array of `google_dataproc_autoscaling_policy` basic_algorithm
* `worker_configs`: an array of `google_dataproc_autoscaling_policy` worker_config
* `secondary_worker_configs`: an array of `google_dataproc_autoscaling_policy` secondary_worker_config
* `labels`: an array of `google_dataproc_autoscaling_policy` labels

## 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 [Cloud Dataproc API](https://console.cloud.google.com/apis/library/dataproc.googleapis.com) is enabled for the current project.
87 changes: 87 additions & 0 deletions docs/resources/google_dataproc_autoscaling_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
---
title: "google_dataproc_autoscaling_policy Resource"
platform: "gcp"
---


## Syntax
A `google_dataproc_autoscaling_policy` is used to test a Google ProjectRegionAutoscalingPolicy resource

## Examples
```
describe google_dataproc_autoscaling_policy(name: 'value_name') do
it { should exist }
its('id') { should cmp 'value_id' }
its('name') { should cmp 'value_name' }
end
describe google_dataproc_autoscaling_policy(name: "does_not_exit") do
it { should_not exist }
end
```

## Parameters
Properties that can be accessed from the `google_dataproc_autoscaling_policy` resource:

## Properties
Properties that can be accessed from the `google_dataproc_autoscaling_policy` resource:


* `id`: Required. The policy id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.

* `name`: Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}

* `basic_algorithm`: Basic algorithm for autoscaling.

* `yarn_config`: Basic autoscaling configurations for YARN.

* `graceful_decommission_timeout`: Required. Timeout for YARN graceful decommissioning of Node Managers. Specifies the duration to wait for jobs to complete before forcefully removing workers (and potentially interrupting jobs). Only applicable to downscaling operations.Bounds: 0s, 1d.

* `scale_up_factor`: Required. Fraction of average YARN pending memory in the last cooldown period for which to add workers. A scale-up factor of 1.0 will result in scaling up so that there is no pending memory remaining after the update (more aggressive scaling). A scale-up factor closer to 0 will result in a smaller magnitude of scaling up (less aggressive scaling). See How autoscaling works (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information.Bounds: 0.0, 1.0.

* `scale_down_factor`: Required. Fraction of average YARN pending memory in the last cooldown period for which to remove workers. A scale-down factor of 1 will result in scaling down so that there is no available memory remaining after the update (more aggressive scaling). A scale-down factor of 0 disables removing workers, which can be beneficial for autoscaling a single job. See How autoscaling works (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information.Bounds: 0.0, 1.0.

* `scale_up_min_worker_fraction`: Optional. Minimum scale-up threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2-worker scale-up for the cluster to scale. A threshold of 0 means the autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.

* `scale_down_min_worker_fraction`: Optional. Minimum scale-down threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2 worker scale-down for the cluster to scale. A threshold of 0 means the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.

* `spark_standalone_config`: Basic autoscaling configurations for Spark Standalone.

* `graceful_decommission_timeout`: Required. Timeout for Spark graceful decommissioning of spark workers. Specifies the duration to wait for spark worker to complete spark decommissioning tasks before forcefully removing workers. Only applicable to downscaling operations.Bounds: 0s, 1d.

* `scale_up_factor`: Required. Fraction of required workers to add to Spark Standalone clusters. A scale-up factor of 1.0 will result in scaling up so that there are no more required workers for the Spark Job (more aggressive scaling). A scale-up factor closer to 0 will result in a smaller magnitude of scaling up (less aggressive scaling).Bounds: 0.0, 1.0.

* `scale_down_factor`: Required. Fraction of required executors to remove from Spark Serverless clusters. A scale-down factor of 1.0 will result in scaling down so that there are no more executors for the Spark Job.(more aggressive scaling). A scale-down factor closer to 0 will result in a smaller magnitude of scaling donw (less aggressive scaling).Bounds: 0.0, 1.0.

* `scale_up_min_worker_fraction`: Optional. Minimum scale-up threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2-worker scale-up for the cluster to scale. A threshold of 0 means the autoscaler will scale up on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.

* `scale_down_min_worker_fraction`: Optional. Minimum scale-down threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2 worker scale-down for the cluster to scale. A threshold of 0 means the autoscaler will scale down on any recommended change.Bounds: 0.0, 1.0. Default: 0.0.

* `remove_only_idle_workers`: Optional. Remove only idle workers when scaling down cluster

* `cooldown_period`: Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed.Bounds: 2m, 1d. Default: 2m.

* `worker_config`: Configuration for the size bounds of an instance group, including its proportional size to other groups.

* `min_instances`: Optional. Minimum number of instances for this group.Primary workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: 0, max_instances. Default: 0.

* `max_instances`: Required. Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set.Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.

* `weight`: Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker.The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if max_instances for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created.If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.

* `secondary_worker_config`: Configuration for the size bounds of an instance group, including its proportional size to other groups.

* `min_instances`: Optional. Minimum number of instances for this group.Primary workers - Bounds: 2, max_instances. Default: 2. Secondary workers - Bounds: 0, max_instances. Default: 0.

* `max_instances`: Required. Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set.Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.

* `weight`: Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker.The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if max_instances for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created.If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.

* `labels`: Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.

* `additional_properties`:


## GCP Permissions

Ensure the [Cloud Dataproc API](https://console.cloud.google.com/apis/library/dataproc.googleapis.com) is enabled for the current project.
Loading

0 comments on commit fa4f76e

Please sign in to comment.