This repository was archived by the owner on Aug 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 12 files changed +43
-12
lines changed Expand file tree Collapse file tree 12 files changed +43
-12
lines changed Original file line number Diff line number Diff line change 1616
1717 verifyMetadata :
1818 uses : cloud-native-toolkit/action-workflows/.github/workflows/verify-module-metadata.yaml@v1
19+
20+ verifyAll :
21+ needs : [verify,verifyMetadata]
22+ runs-on : ubuntu-latest
23+
24+ steps :
25+ - run : echo "Success"
Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ The module depends on the following software components:
1717### Terraform providers
1818
1919- IBM Cloud provider >= 1.18
20- - Helm provider >= 1.1.1 (provided by Terraform)
2120
2221## Module dependencies
2322
2423This module makes use of the output from other modules:
2524
26- - Object Storage - github.com/cloud-native-toolkit/terraform-ibm-object-storage.git
27- - VPC - github.com/cloud-native-toolkit/terraform-ibm-vpc.git
28- - Subnet - github.com/cloud-native-toolkit/terraform-ibm-vpc.git
25+ - Resource Group - github.com/terraform-ibm-modules/terraform-ibm-toolkit-resource-group
26+ - Subnet - github.com/terraform-ibm-modules/terraform-ibm-toolkit-vpc-subnets
27+ - Object Storage - github.com/terraform-ibm-modules/terraform-ibm-toolkit-object-storage
28+ - KMS Key - github.com/terraform-ibm-modules/terraform-ibm-toolkit-kms-key
2929
3030## Example usage
3131
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ locals {
4848 zone = data . ibm_container_vpc_cluster_worker . workers [i ]. network_interfaces [0 ]. subnet_id
4949 }
5050 ])
51+ tags = distinct (concat (var. common_tags , var. tags ))
5152}
5253
5354data external dirs {
@@ -177,7 +178,7 @@ resource ibm_container_vpc_cluster cluster {
177178 disable_public_service_endpoint = var. disable_public_endpoint
178179 force_delete_storage = var. force_delete_storage
179180 wait_till = " IngressReady"
180- tags = var . tags
181+ tags = local . tags
181182
182183 dynamic "zones" {
183184 for_each = local. vpc_subnets
Original file line number Diff line number Diff line change @@ -18,19 +18,19 @@ versions:
1818 dependencies :
1919 - id : resource-group
2020 refs :
21- - source : github.com/cloud-native-toolkit /terraform-ibm-resource-group
21+ - source : github.com/terraform-ibm-modules /terraform-ibm-toolkit -resource-group
2222 version : " >= 1.0.0"
2323 - id : cos
2424 refs :
2525 - source : github.com/cloud-native-toolkit/terraform-ibm-object-storage
2626 version : " >= 2.1.0"
2727 - id : subnets
2828 refs :
29- - source : github.com/cloud-native-toolkit /terraform-ibm-vpc-subnets
29+ - source : github.com/terraform-ibm-modules /terraform-ibm-toolkit -vpc-subnets
3030 version : " >= 1.8.0"
3131 - id : kms_key
3232 refs :
33- - source : github.com/cloud-native-toolkit /terraform-ibm-kms-key
33+ - source : github.com/terraform-ibm-modules /terraform-ibm-toolkit -kms-key
3434 version : " >= 1.0.0"
3535 optional : true
3636 - id : sync
@@ -89,3 +89,6 @@ versions:
8989 moduleRef :
9090 id : sync
9191 output : sync
92+ - name : common_tags
93+ scope : global
94+ important : true
Original file line number Diff line number Diff line change 11module "cos" {
2- source = " github.com/cloud-native-toolkit /terraform-ibm-object-storage"
2+ source = " github.com/terraform-ibm-modules /terraform-ibm-toolkit -object-storage"
33
44 provision = true
55 resource_group_name = module. resource_group . name
66 name_prefix = var. name_prefix
7+ common_tags = var. common_tags
8+ tags = [" cos" ]
79}
Original file line number Diff line number Diff line change @@ -4,4 +4,6 @@ module "gateways" {
44 resource_group_id = module. resource_group . id
55 region = var. region
66 vpc_name = module. vpc . name
7+ common_tags = var. common_tags
8+ tags = [" gateway" ]
79}
Original file line number Diff line number Diff line change 11module "resource_group" {
2- source = " github.com/cloud-native-toolkit /terraform-ibm-resource-group.git "
2+ source = " github.com/terraform-ibm-modules /terraform-ibm-toolkit- resource-group"
33
44 resource_group_name = var. resource_group_name
55 ibmcloud_api_key = var. ibmcloud_api_key
Original file line number Diff line number Diff line change 11module "subnets" {
2- source = " github.com/cloud-native-toolkit /terraform-ibm-vpc-subnets.git "
2+ source = " github.com/terraform-ibm-modules /terraform-ibm-toolkit- vpc-subnets"
33
44 resource_group_name = module. resource_group . name
55 region = var. region
66 vpc_name = module. vpc . name
77 gateways = module. gateways . gateways
88 _count = 2
99 label = " bastion"
10+ common_tags = var. common_tags
11+ tags = [" subnet" ]
1012}
Original file line number Diff line number Diff line change 11module "vpc" {
2- source = " github.com/cloud-native-toolkit /terraform-ibm-vpc.git "
2+ source = " github.com/terraform-ibm-modules /terraform-ibm-toolkit- vpc"
33
44 resource_group_name = module. resource_group . name
55 region = var. region
66 name_prefix = var. name_prefix
7+ common_tags = var. common_tags
8+ tags = [" vpc" ]
79}
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ module "cluster" {
1313 vpc_subnets = module. subnets . subnets
1414 vpc_subnet_count = module. subnets . count
1515 cos_id = module. cos . id
16+ common_tags = var. common_tags
17+ tags = [" openshift" ]
1618}
1719
1820resource "local_file" "cluster_creds" {
You can’t perform that action at this time.
0 commit comments