Skip to content

Commit e6d5881

Browse files
committed
clusters data source
1 parent 3fde542 commit e6d5881

File tree

9 files changed

+541
-22
lines changed

9 files changed

+541
-22
lines changed

docs/data-sources/clusters.md

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "astronomer_clusters Data Source - astronomer"
4+
subcategory: ""
5+
description: |-
6+
Clusters data source
7+
---
8+
9+
# astronomer_clusters (Data Source)
10+
11+
Clusters data source
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Optional
19+
20+
- `cloud_provider` (String)
21+
- `names` (List of String)
22+
23+
### Read-Only
24+
25+
- `clusters` (Attributes List) (see [below for nested schema](#nestedatt--clusters))
26+
27+
<a id="nestedatt--clusters"></a>
28+
### Nested Schema for `clusters`
29+
30+
Required:
31+
32+
- `id` (String) Cluster identifier
33+
34+
Read-Only:
35+
36+
- `cloud_provider` (String) Cluster cloud provider
37+
- `created_at` (String) Cluster creation timestamp
38+
- `db_instance_type` (String) Cluster database instance type
39+
- `is_limited` (Boolean) Whether the cluster is limited
40+
- `metadata` (Attributes) Cluster metadata (see [below for nested schema](#nestedatt--clusters--metadata))
41+
- `name` (String) Cluster name
42+
- `node_pools` (Attributes List) Cluster node pools (see [below for nested schema](#nestedatt--clusters--node_pools))
43+
- `pod_subnet_range` (String) Cluster pod subnet range
44+
- `provider_account` (String) Cluster provider account
45+
- `region` (String) Cluster region
46+
- `service_peering_range` (String) Cluster service peering range
47+
- `service_subnet_range` (String) Cluster service subnet range
48+
- `status` (String) Cluster status
49+
- `tags` (Attributes List) Cluster tags (see [below for nested schema](#nestedatt--clusters--tags))
50+
- `tenant_id` (String) Cluster tenant ID
51+
- `type` (String) Cluster type
52+
- `updated_at` (String) Cluster last updated timestamp
53+
- `vpc_subnet_range` (String) Cluster VPC subnet range
54+
- `workspace_ids` (List of String) Cluster workspace IDs
55+
56+
<a id="nestedatt--clusters--metadata"></a>
57+
### Nested Schema for `clusters.metadata`
58+
59+
Read-Only:
60+
61+
- `external_ips` (List of String) Cluster external IPs
62+
- `oidc_issuer_url` (String) Cluster OIDC issuer URL
63+
64+
65+
<a id="nestedatt--clusters--node_pools"></a>
66+
### Nested Schema for `clusters.node_pools`
67+
68+
Read-Only:
69+
70+
- `cloud_provider` (String) Node pool cloud provider
71+
- `cluster_id` (String) Node pool cluster identifier
72+
- `created_at` (String) Node pool creation timestamp
73+
- `id` (String) Node pool identifier
74+
- `is_default` (Boolean) Whether the node pool is the default node pool of the cluster
75+
- `max_node_count` (Number) Node pool maximum node count
76+
- `name` (String) Node pool name
77+
- `node_instance_type` (String) Node pool node instance type
78+
- `supported_astro_machines` (List of String) Node pool supported Astro machines
79+
- `updated_at` (String) Node pool last updated timestamp
80+
81+
82+
<a id="nestedatt--clusters--tags"></a>
83+
### Nested Schema for `clusters.tags`
84+
85+
Read-Only:
86+
87+
- `key` (String) Cluster tag key
88+
- `value` (String) Cluster tag value

internal/clients/iam/api.gen.go

+48-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/clients/platform/api.gen.go

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/datasources/data_source_cluster_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ func TestAcc_DataSourceCluster(t *testing.T) {
1919
},
2020
ProtoV6ProviderFactories: astronomerprovider.TestAccProtoV6ProviderFactories,
2121
Steps: []resource.TestStep{
22-
//Check the data source for deployments for a hosted organization
22+
// Check the data source for cluster for a hybrid organization
2323
{
2424
Config: astronomerprovider.ProviderConfig(t, false) + cluster(resourceName, hybridClusterId),
2525
Check: resource.ComposeTestCheckFunc(
26-
// These checks are for the deployment data source (singular)
26+
// These checks are for the cluster data source (singular)
2727
resource.TestCheckResourceAttrSet(resourceVar, "id"),
2828
resource.TestCheckResourceAttrSet(resourceVar, "name"),
2929
resource.TestCheckResourceAttrSet(resourceVar, "cloud_provider"),

0 commit comments

Comments
 (0)