Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit 0d019cc

Browse files
fix: remove terraform version constraints from the agents DA variation (#200)
1 parent 54c0283 commit 0d019cc

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

solutions/agents/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 1.3.0, <1.7.0"
2+
required_version = ">= 1.3.0"
33

44
required_providers {
55
# Lock DA into an exact provider version - renovate automation will keep it updated

tests/resources/existing-resources/agents/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ module "resource_group" {
1515
##############################################################################
1616

1717
module "landing_zone" {
18-
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone//patterns//roks//module?ref=v5.33.0"
18+
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone//patterns//roks//module?ref=v6.0.3"
1919
region = var.region
2020
prefix = var.prefix
2121
tags = var.resource_tags
2222
add_atracker_route = false
2323
enable_transit_gateway = false
24+
# GHA runtime has no access to private
25+
verify_cluster_network_readiness = false
26+
use_ibm_cloud_private_api_endpoints = false
2427
}
2528

2629
##############################################################################

tests/resources/existing-resources/agents/outputs.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ output "cluster_data" {
1010
}
1111

1212
output "workload_cluster_id" {
13-
value = lookup([for cluster in module.landing_zone.cluster_data : cluster if strcontains(cluster.resource_group_name, "workload")][0], "id", "")
13+
value = module.landing_zone.workload_cluster_id
1414
description = "ID of the workload cluster."
1515
}
1616

1717
output "workload_cluster_name" {
18-
value = [for cluster_name in module.landing_zone.cluster_names : cluster_name if strcontains(cluster_name, "workload")][0]
18+
value = module.landing_zone.workload_cluster_name
1919
description = "Name of the workload cluster."
2020
}
2121

2222
output "cluster_resource_group_id" {
23-
value = lookup([for cluster in module.landing_zone.cluster_data : cluster if strcontains(cluster.resource_group_name, "workload")][0], "resource_group_id", "")
23+
value = module.landing_zone.cluster_data["${var.prefix}-workload-cluster"].resource_group_id
2424
description = "Resource group ID of the workload cluster."
2525
}

0 commit comments

Comments
 (0)