Skip to content

Commit

Permalink
OCM-13210 | fix: include wait knobs to cluster datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbranco committed Dec 20, 2024
1 parent 994ef95 commit b0e3faf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/cluster_rosa_classic.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ data "rhcs_cluster_rosa_classic" "cluster" {
- `host_prefix` (Number) Length of the prefix of the subnet assigned to each node. After the creation of the resource, it is not possible to update the attribute value.
- `infra_id` (String) The ROSA cluster infrastructure ID.
- `machine_cidr` (String) Block of IP addresses for nodes. After the creation of the resource, it is not possible to update the attribute value.
- `max_cluster_wait_timeout_in_minutes` (Number) This attribute is not supported for cluster data source. Therefore, it will not be displayed as an output of the datasource
- `max_replicas` (Number) This attribute is not supported for cluster data source. Therefore, it will not be displayed as an output of the datasource
- `min_replicas` (Number) This attribute is not supported for cluster data source. Therefore, it will not be displayed as an output of the datasource
- `multi_az` (Boolean) Indicates if the cluster should be deployed to multiple availability zones. Default value is 'false'. This attribute specifically applies to the Worker Machine Pool and becomes irrelevant once the resource is created. Any modifications to the initial Machine Pool should be made through the Terraform imported Machine Pool resource. For more details, refer to [Worker Machine Pool in ROSA Cluster](../guides/worker-machine-pool.md)
Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/cluster_rosa_hcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ data "rhcs_cluster_rosa_hcp" "cluster" {
- `external_id` (String) Unique external identifier of the cluster. After the creation of the resource, it is not possible to update the attribute value.
- `host_prefix` (Number) Length of the prefix of the subnet assigned to each node. After the creation of the resource, it is not possible to update the attribute value.
- `machine_cidr` (String) Block of IP addresses for nodes. After the creation of the resource, it is not possible to update the attribute value.
- `max_hcp_cluster_wait_timeout_in_minutes` (Number) This attribute is not supported for cluster data source. Therefore, it will not be displayed as an output of the datasource
- `max_machinepool_wait_timeout_in_minutes` (Number) This attribute is not supported for cluster data source. Therefore, it will not be displayed as an output of the datasource
- `name` (String) Name of the cluster. Cannot exceed 54 characters in length. After the creation of the resource, it is not possible to update the attribute value.
- `ocm_properties` (Map of String) Merged properties defined by OCM and the user defined 'properties'.
- `pod_cidr` (String) Block of IP addresses for pods. After the creation of the resource, it is not possible to update the attribute value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ func (r *ClusterRosaClassicDatasource) Schema(ctx context.Context, req datasourc
ElementType: types.StringType,
Computed: true,
},
"max_cluster_wait_timeout_in_minutes": schema.Int64Attribute{
Description: deprecatedMessage,
Computed: true,
},
},
}
}
Expand Down
8 changes: 8 additions & 0 deletions provider/clusterrosa/hcp/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,14 @@ func (r *ClusterRosaHcpDatasource) Schema(ctx context.Context, req datasource.Sc
Description: deprecatedMessage,
Computed: true,
},
"max_hcp_cluster_wait_timeout_in_minutes": schema.Int64Attribute{
Description: deprecatedMessage,
Computed: true,
},
"max_machinepool_wait_timeout_in_minutes": schema.Int64Attribute{
Description: deprecatedMessage,
Computed: true,
},
"create_admin_user": schema.BoolAttribute{
Description: deprecatedMessage,
Computed: true,
Expand Down

0 comments on commit b0e3faf

Please sign in to comment.