Skip to content

Commit 80250f5

Browse files
authored
fix: removed deprecated attribute from ibm_container_cluster_versions data lookup (#189)
1 parent ce1a44b commit 80250f5

File tree

2 files changed

+16
-25
lines changed

2 files changed

+16
-25
lines changed

main.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@ locals {
3737
# Lookup the current default kube version
3838
data "ibm_container_cluster_versions" "cluster_versions" {
3939
resource_group_id = var.resource_group_id
40-
region = var.region
4140
}
4241

4342
module "cos_instance" {
44-
count = var.use_existing_cos ? 0 : 1
45-
43+
count = var.use_existing_cos ? 0 : 1
4644
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-cos.git?ref=v6.1.0"
4745
cos_instance_name = local.cos_name
4846
resource_group_id = var.resource_group_id

module-metadata.json

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,10 @@
175175
"type": "string",
176176
"description": "The IBM Cloud region where the cluster will be provisioned.",
177177
"required": true,
178-
"source": [
179-
"data.ibm_container_cluster_versions.cluster_versions.region"
180-
],
181178
"pos": {
182179
"filename": "variables.tf",
183180
"line": 17
184-
},
185-
"cloud_data_type": "region",
186-
"deprecated": "This field is deprecated"
181+
}
187182
},
188183
"resource_group_id": {
189184
"name": "resource_group_id",
@@ -380,8 +375,7 @@
380375
"filename": "outputs.tf",
381376
"line": 43
382377
},
383-
"type": "string",
384-
"cloud_data_type": "region"
378+
"type": "string"
385379
},
386380
"resource_group_id": {
387381
"name": "resource_group_id",
@@ -448,7 +442,7 @@
448442
},
449443
"pos": {
450444
"filename": "main.tf",
451-
"line": 360
445+
"line": 358
452446
}
453447
},
454448
"ibm_container_vpc_cluster.autoscaling_cluster": {
@@ -471,7 +465,7 @@
471465
},
472466
"pos": {
473467
"filename": "main.tf",
474-
"line": 133
468+
"line": 131
475469
}
476470
},
477471
"ibm_container_vpc_cluster.cluster": {
@@ -494,7 +488,7 @@
494488
},
495489
"pos": {
496490
"filename": "main.tf",
497-
"line": 71
491+
"line": 69
498492
}
499493
},
500494
"ibm_container_vpc_worker_pool.autoscaling_pool": {
@@ -510,7 +504,7 @@
510504
},
511505
"pos": {
512506
"filename": "main.tf",
513-
"line": 284
507+
"line": 282
514508
}
515509
},
516510
"ibm_container_vpc_worker_pool.pool": {
@@ -526,7 +520,7 @@
526520
},
527521
"pos": {
528522
"filename": "main.tf",
529-
"line": 243
523+
"line": 241
530524
}
531525
},
532526
"ibm_resource_tag.cluster_access_tag": {
@@ -543,7 +537,7 @@
543537
},
544538
"pos": {
545539
"filename": "main.tf",
546-
"line": 197
540+
"line": 195
547541
}
548542
},
549543
"ibm_resource_tag.cos_access_tag": {
@@ -559,7 +553,7 @@
559553
},
560554
"pos": {
561555
"filename": "main.tf",
562-
"line": 60
556+
"line": 58
563557
}
564558
},
565559
"kubernetes_config_map_v1_data.set_autoscaling": {
@@ -574,7 +568,7 @@
574568
},
575569
"pos": {
576570
"filename": "main.tf",
577-
"line": 397
571+
"line": 395
578572
}
579573
},
580574
"null_resource.confirm_network_healthy": {
@@ -589,7 +583,7 @@
589583
},
590584
"pos": {
591585
"filename": "main.tf",
592-
"line": 344
586+
"line": 342
593587
}
594588
},
595589
"null_resource.reset_api_key": {
@@ -601,7 +595,7 @@
601595
},
602596
"pos": {
603597
"filename": "main.tf",
604-
"line": 218
598+
"line": 216
605599
}
606600
},
607601
"time_sleep.wait_operators": {
@@ -613,7 +607,7 @@
613607
},
614608
"pos": {
615609
"filename": "main.tf",
616-
"line": 379
610+
"line": 377
617611
}
618612
}
619613
},
@@ -631,15 +625,14 @@
631625
},
632626
"pos": {
633627
"filename": "main.tf",
634-
"line": 232
628+
"line": 230
635629
}
636630
},
637631
"data.ibm_container_cluster_versions.cluster_versions": {
638632
"mode": "data",
639633
"type": "ibm_container_cluster_versions",
640634
"name": "cluster_versions",
641635
"attributes": {
642-
"region": "region",
643636
"resource_group_id": "resource_group_id"
644637
},
645638
"provider": {
@@ -855,7 +848,7 @@
855848
},
856849
"pos": {
857850
"filename": "main.tf",
858-
"line": 43
851+
"line": 42
859852
}
860853
}
861854
}

0 commit comments

Comments
 (0)