Skip to content

Commit eaf310f

Browse files
committed
refactor: move lists to sets
1 parent 6c1e59a commit eaf310f

File tree

25 files changed

+78
-244
lines changed

25 files changed

+78
-244
lines changed

docs/data-sources/env_aws.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Bring Your Own Cloud (BYOC) AWS environment data source.
6464
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
6565
- "ZONE_BEST_EFFORT": keep traffic within same zone
6666
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
67-
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
67+
- `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
6868
- `peering_connections` (Attributes List) AWS environment VPC peering configuration. (see [below for nested schema](#nestedatt--peering_connections))
6969
- `permissions_boundary_policy_arn` (String) Policy ARN that sets the maximum permissions for the IAM roles created by the environment. **[IMMUTABLE]**
7070
- `region` (String) AWS region ([docs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions)). **[IMMUTABLE]**
@@ -76,7 +76,7 @@ Bring Your Own Cloud (BYOC) AWS environment data source.
7676
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
7777
- `spec_revision` (Number) Spec revision
7878
- `tags` (Attributes List) Tags to apply to AWS resources. (see [below for nested schema](#nestedatt--tags))
79-
- `zones` (List of String) Explicit list of AWS availability zones. At least 2 required.
79+
- `zones` (Set of String) Explicit list of AWS availability zones. At least 2 required.
8080

8181
Examples:
8282
- ["us-east-1a", "us-east-1b"]

docs/data-sources/env_azure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Bring Your Own Cloud (BYOC) Azure environment data source.
5757
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
5858
- "ZONE_BEST_EFFORT": keep traffic within same zone
5959
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
60-
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
60+
- `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
6161
- `private_link_service` (Attributes) Azure Private Link service configuration. (see [below for nested schema](#nestedatt--private_link_service))
6262
- `region` (String) Azure region ([docs](https://azure.microsoft.com/en-us/explore/global-infrastructure/geographies/#overview)). **[IMMUTABLE]**
6363

@@ -69,7 +69,7 @@ Bring Your Own Cloud (BYOC) Azure environment data source.
6969
- `subscription_id` (String) ID linking the environment to a specific Azure subscription for resource management. **[IMMUTABLE]**
7070
- `tags` (Attributes List) Tags to apply to Azure resources. (see [below for nested schema](#nestedatt--tags))
7171
- `tenant_id` (String) ID of the Azure Active Directory tenant for user identity and access management. **[IMMUTABLE]**
72-
- `zones` (List of String) Explicit list of Azure availability zones. At least 2 required.
72+
- `zones` (Set of String) Explicit list of Azure availability zones. At least 2 required.
7373

7474
Examples:
7575
- ["eastus-1", "eastus-2"]

docs/data-sources/env_gcp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Bring Your Own Cloud (BYOC) GCP environment data source.
5858
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
5959
- "ZONE_BEST_EFFORT": keep traffic within same zone
6060
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
61-
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
61+
- `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
6262
- `peering_connections` (Attributes List) Network peering configuration. (see [below for nested schema](#nestedatt--peering_connections))
6363
- `private_service_consumers` (List of String) List of project IDs representing the network's private service consumers.
6464
- `region` (String) GCP region ([docs](https://cloud.google.com/about/locations)). **[IMMUTABLE]**
@@ -67,7 +67,7 @@ Bring Your Own Cloud (BYOC) GCP environment data source.
6767
- "us-west1".
6868
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
6969
- `spec_revision` (Number) Spec revision
70-
- `zones` (List of String) Explicit list of GCP zones. At least 2 required.
70+
- `zones` (Set of String) Explicit list of GCP zones. At least 2 required.
7171
Examples:
7272
- ["us-west1-a", "us-west1-b"]
7373

docs/data-sources/env_hcloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Bring Your Own Cloud (BYOC) HCloud environment data source.
5757
Possible Values:
5858
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
5959
- "ZONE_BEST_EFFORT": keep traffic within same zone
60-
- `locations` (List of String) Explicit list of HCloud locations. Currently supports single location only.
60+
- `locations` (Set of String) Explicit list of HCloud locations. Currently supports single location only.
6161

6262
Examples:
6363
- ["hil"]

docs/data-sources/env_k8s.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Bring Your Own Kubernetes (BYOK) environment data source.
6262
- `logs` (Attributes) Kubernetes environment logs configuration (see [below for nested schema](#nestedatt--logs))
6363
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
6464
- `metrics` (Attributes) Metrics configuration (see [below for nested schema](#nestedatt--metrics))
65-
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
65+
- `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
6666
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
6767
- `spec_revision` (Number) Spec revision
6868

@@ -203,7 +203,7 @@ Required:
203203

204204
- `capacity_per_zone` (Number) Maximum number of instances per availability zone.
205205
- `node_type` (String) node.kubernetes.io/instance-type value.
206-
- `zones` (List of String) topology.kubernetes.io/zone values.
206+
- `zones` (Set of String) topology.kubernetes.io/zone values.
207207

208208
Optional:
209209

@@ -214,8 +214,8 @@ Optional:
214214
- "SYSTEM" (at least one node group must include a SYSTEM reservation)
215215
- "CLICKHOUSE"
216216
- "ZOOKEEPER"
217-
- `selector` (Attributes List) `nodeSelector` to apply to the pods targeting this group (see [below for nested schema](#nestedatt--node_groups--selector))
218-
- `tolerations` (Attributes List) List of tolerations to apply to the pods targeting this group (see [below for nested schema](#nestedatt--node_groups--tolerations))
217+
- `selector` (Attributes Set) `nodeSelector` to apply to the pods targeting this group (see [below for nested schema](#nestedatt--node_groups--selector))
218+
- `tolerations` (Attributes Set) List of tolerations to apply to the pods targeting this group (see [below for nested schema](#nestedatt--node_groups--tolerations))
219219

220220
<a id="nestedatt--node_groups--selector"></a>
221221
### Nested Schema for `node_groups.selector`

docs/resources/env_aws.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ data "altinitycloud_env_aws_status" "this" {
216216

217217
Examples:
218218
- "acme-staging" (where "acme" is your account name)
219-
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
219+
- `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
220220
- `region` (String) AWS region ([docs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions)). **[IMMUTABLE]**
221221

222222
Examples:
@@ -257,7 +257,7 @@ data "altinitycloud_env_aws_status" "this" {
257257
- `resource_prefix` (String) Resource prefix used for provisioned resources **[IMMUTABLE]**
258258
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
259259
- `tags` (Attributes List) Tags to apply to AWS resources. (see [below for nested schema](#nestedatt--tags))
260-
- `zones` (List of String) Explicit list of AWS availability zones. At least 2 required.
260+
- `zones` (Set of String) Explicit list of AWS availability zones. At least 2 required.
261261

262262
Examples:
263263
- ["us-east-1a", "us-east-1b"]

docs/resources/env_azure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ data "altinitycloud_env_azure_status" "this" {
8888

8989
Examples:
9090
- "acme-staging" (where "acme" is your account name)
91-
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
91+
- `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
9292
- `region` (String) Azure region ([docs](https://azure.microsoft.com/en-us/explore/global-infrastructure/geographies/#overview)). **[IMMUTABLE]**
9393

9494
Examples:
@@ -126,7 +126,7 @@ data "altinitycloud_env_azure_status" "this" {
126126
- `private_link_service` (Attributes) Azure Private Link service configuration. (see [below for nested schema](#nestedatt--private_link_service))
127127
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
128128
- `tags` (Attributes List) Tags to apply to Azure resources. (see [below for nested schema](#nestedatt--tags))
129-
- `zones` (List of String) Explicit list of Azure availability zones. At least 2 required.
129+
- `zones` (Set of String) Explicit list of Azure availability zones. At least 2 required.
130130

131131
Examples:
132132
- ["eastus-1", "eastus-2"]

docs/resources/env_gcp.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ data "altinitycloud_env_gcp_status" "this" {
9797

9898
Examples:
9999
- "acme-staging" (where "acme" is your account name)
100-
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
100+
- `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
101101
- `region` (String) GCP region ([docs](https://cloud.google.com/about/locations)). **[IMMUTABLE]**
102102

103103
Examples:
@@ -132,7 +132,7 @@ data "altinitycloud_env_gcp_status" "this" {
132132
- `peering_connections` (Attributes List) Network peering configuration. (see [below for nested schema](#nestedatt--peering_connections))
133133
- `private_service_consumers` (List of String) List of project IDs representing the network's private service consumers.
134134
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
135-
- `zones` (List of String) Explicit list of GCP zones. At least 2 required.
135+
- `zones` (Set of String) Explicit list of GCP zones. At least 2 required.
136136
Examples:
137137
- ["us-west1-a", "us-west1-b"]
138138

@@ -295,8 +295,8 @@ resource "altinitycloud_env_gcp" "this" {
295295
]
296296
297297
peering_connections = {
298-
project_id = "peering-project-id" # Replace with actual peering project ID
299-
network_name = "peering-network-name" # Replace with actual peering network name
298+
project_id = "peering-project-id" # Replace with actual peering project ID
299+
network_name = "peering-network-name" # Replace with actual peering network name
300300
}
301301
}
302302
@@ -325,7 +325,7 @@ data "altinitycloud_env_gcp_status" "this" {
325325

326326
Examples:
327327
- "acme-staging" (where "acme" is your account name)
328-
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
328+
- `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
329329
- `region` (String) GCP region ([docs](https://cloud.google.com/about/locations)). **[IMMUTABLE]**
330330

331331
Examples:
@@ -360,7 +360,7 @@ data "altinitycloud_env_gcp_status" "this" {
360360
- `peering_connections` (Attributes List) Network peering configuration. (see [below for nested schema](#nestedatt--peering_connections))
361361
- `private_service_consumers` (List of String) List of project IDs representing the network's private service consumers.
362362
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
363-
- `zones` (List of String) Explicit list of GCP zones. At least 2 required.
363+
- `zones` (Set of String) Explicit list of GCP zones. At least 2 required.
364364
Examples:
365365
- ["us-west1-a", "us-west1-b"]
366366

docs/resources/env_hcloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ data "altinitycloud_env_hcloud_status" "this" {
114114
Possible Values:
115115
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
116116
- "ZONE_BEST_EFFORT": keep traffic within same zone
117-
- `locations` (List of String) Explicit list of HCloud locations. Currently supports single location only.
117+
- `locations` (Set of String) Explicit list of HCloud locations. Currently supports single location only.
118118

119119
Examples:
120120
- ["hil"]

docs/resources/env_k8s.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ resource "altinitycloud_env_k8s" "this" {
334334

335335
Examples:
336336
- "acme-staging" (where "acme" is your account name)
337-
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
337+
- `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
338338

339339
### Optional
340340

@@ -379,7 +379,7 @@ Required:
379379

380380
- `capacity_per_zone` (Number) Maximum number of instances per availability zone.
381381
- `node_type` (String) node.kubernetes.io/instance-type value.
382-
- `zones` (List of String) topology.kubernetes.io/zone values.
382+
- `zones` (Set of String) topology.kubernetes.io/zone values.
383383

384384
Optional:
385385

@@ -390,8 +390,8 @@ Optional:
390390
- "SYSTEM" (at least one node group must include a SYSTEM reservation)
391391
- "CLICKHOUSE"
392392
- "ZOOKEEPER"
393-
- `selector` (Attributes List) `nodeSelector` to apply to the pods targeting this group (see [below for nested schema](#nestedatt--node_groups--selector))
394-
- `tolerations` (Attributes List) List of tolerations to apply to the pods targeting this group (see [below for nested schema](#nestedatt--node_groups--tolerations))
393+
- `selector` (Attributes Set) `nodeSelector` to apply to the pods targeting this group (see [below for nested schema](#nestedatt--node_groups--selector))
394+
- `tolerations` (Attributes Set) List of tolerations to apply to the pods targeting this group (see [below for nested schema](#nestedatt--node_groups--tolerations))
395395

396396
<a id="nestedatt--node_groups--selector"></a>
397397
### Nested Schema for `node_groups.selector`

0 commit comments

Comments
 (0)