Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] feat: Integrate ocp-base with SLZ #253

Closed
wants to merge 166 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
deb8421
test: extend output to support ocp
Aashiq-J Jan 11, 2023
3c3b16d
test: phase 1 changes
Aashiq-J Jan 24, 2023
1169389
Merge branch 'main' into extend-output
Aashiq-J Jan 24, 2023
31b395d
test: phase 1 changes
Aashiq-J Jan 24, 2023
f9e04b1
test: Change observability module source
Aashiq-J Jan 25, 2023
fffbd7f
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Feb 9, 2023
49a6fe4
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Feb 18, 2023
c7451a4
test: add roks example
Aashiq-J Feb 18, 2023
692629b
test: enable private endpoint example
Aashiq-J Feb 27, 2023
c947df4
fix: add docs for private endpoint
Aashiq-J Feb 27, 2023
7cb026b
test: upgradeExample SKIP UPGRADE TEST
Aashiq-J Feb 27, 2023
f9139cd
Merge branch 'main' to 'extend-output'
Aashiq-J Feb 27, 2023
c088fa0
fix: disable sysdig provision
Aashiq-J Feb 27, 2023
d5fcf49
test: enable sysdig creation
Aashiq-J Feb 28, 2023
122af32
test: change sysdig default tier
Aashiq-J Feb 28, 2023
0633226
test: disable platform metrics
Aashiq-J Feb 28, 2023
c88d5a3
test: merge with main
Aashiq-J Feb 28, 2023
e328678
fix: update the ocp-all-inclusive ref
Aashiq-J Mar 1, 2023
e108c0d
test: merge with main
Aashiq-J Mar 1, 2023
a65454e
fix: update logic for cluster_map selection
Aashiq-J Mar 6, 2023
de68894
Merge branch 'main' into extend-output
Aashiq-J Mar 8, 2023
5d67dda
fix: change logic for cluster creation
Aashiq-J Mar 10, 2023
493c5d1
Merge branch 'extend-output' of https://github.com/terraform-ibm-modu…
Aashiq-J Mar 10, 2023
7bb25ef
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Mar 10, 2023
725c0e1
Merge branch 'main' into extend-output
Aashiq-J Mar 10, 2023
e954592
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Mar 10, 2023
b683bc2
Merge branch 'extend-output' of https://github.com/terraform-ibm-modu…
Aashiq-J Mar 10, 2023
1e15c29
fix: remove observability agents
Aashiq-J Mar 13, 2023
f694299
fix: remove observability instance creation
Aashiq-J Mar 13, 2023
de3dd38
fix: precommit fixes
Aashiq-J Mar 13, 2023
1d0e1c8
fix: undo the variable name change
Aashiq-J Mar 16, 2023
acfe777
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Mar 16, 2023
5682fd5
fix: add kube_version variable
Aashiq-J Mar 16, 2023
78bb34b
fix: add worker_pools in config.tf
Aashiq-J Mar 16, 2023
48acc70
Merge branch 'main' into extend-output
Aashiq-J Mar 16, 2023
4829d42
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Mar 20, 2023
6a88946
fix: take default pool config from high level of cluster list
Aashiq-J Mar 20, 2023
794cb5a
Merge branch 'extend-output' of https://github.com/terraform-ibm-modu…
Aashiq-J Mar 20, 2023
da70ab0
fis: add boot volume encryption
Aashiq-J Mar 21, 2023
7beb613
fix: fix the boot volume encryption variable location
Aashiq-J Mar 21, 2023
6e912ba
fix: variable mix-up
Aashiq-J Mar 21, 2023
6161228
fix: change workerpool name
Aashiq-J Mar 21, 2023
41937cb
test: merge with main
Aashiq-J Mar 22, 2023
c73ca3f
Merge branch 'main' into extend-output
Aashiq-J Mar 23, 2023
c4bbd69
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Mar 24, 2023
d5e7315
fix: use kube_version and disable public endpoint
Aashiq-J Mar 24, 2023
8893f3e
Merge branch 'extend-output' of https://github.com/terraform-ibm-modu…
Aashiq-J Mar 24, 2023
a5beb13
Merge branch 'main' into extend-output
vburckhardt Mar 24, 2023
e719897
Merge branch 'main' into extend-output
Aashiq-J Mar 27, 2023
4975d11
Merge branch 'main' into extend-output
Aashiq-J Mar 27, 2023
3bc2b9e
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Mar 28, 2023
0eea38e
fix: set default value for verify_worker_network_readiness
Aashiq-J Mar 28, 2023
53bc367
merge main with extend-output
Aashiq-J Mar 28, 2023
3edf3ab
Merge branch 'main' into extend-output
Aashiq-J Mar 28, 2023
ca0f2a2
Merge branch 'main' into extend-output
Aashiq-J Mar 29, 2023
443362c
Merge branch 'main' into extend-output
Aashiq-J Mar 29, 2023
b38232f
Merge branch 'main' into extend-output
Aashiq-J Mar 29, 2023
6cbbba6
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Mar 30, 2023
339abe1
fix: update variables
Aashiq-J Mar 30, 2023
3501094
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Apr 3, 2023
7a0ac3c
fix: update cra goals
Aashiq-J Apr 3, 2023
acc9c23
Merge branch 'main' into extend-output
Aashiq-J Apr 3, 2023
59145b2
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Apr 4, 2023
f136711
Merge branch 'extend-output' of https://github.com/terraform-ibm-modu…
Aashiq-J Apr 4, 2023
7b60fd5
Merge branch 'main' into extend-output
Aashiq-J Apr 4, 2023
b8581c3
Merge branch 'main' into extend-output
Aashiq-J Apr 5, 2023
f3998f6
Merge branch 'main' into extend-output
Aashiq-J Apr 6, 2023
7a6c66f
Merge branch 'main' into extend-output
Aashiq-J Apr 6, 2023
1109dd6
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Apr 10, 2023
044de4a
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Apr 13, 2023
f940936
fix: dynamic vpc_subnets map key
Aashiq-J Apr 13, 2023
c9ee4f6
fix: add api key for vpc pattern
Aashiq-J Apr 13, 2023
c0ce2ae
Merge branch 'main' into extend-output
Aashiq-J Apr 13, 2023
035e5ec
fix: check for null worker_pool value
Aashiq-J Apr 13, 2023
6167801
fix: remove unwanted variables and add iks logic
Aashiq-J Apr 14, 2023
7a99b1d
Merge branch 'main' into extend-output
Aashiq-J Apr 14, 2023
af45948
fix: add support for list of subnets
Aashiq-J Apr 21, 2023
6a434f1
Merge branch 'extend-output' of https://github.com/terraform-ibm-modu…
Aashiq-J Apr 21, 2023
a38febf
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Apr 21, 2023
5ef4f5d
fix: precommit fixes
Aashiq-J Apr 21, 2023
4933bff
Merge branch 'main' into extend-output
Aashiq-J Apr 24, 2023
3764dba
Merge branch 'main' into extend-output
Aashiq-J Apr 25, 2023
66007af
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Apr 25, 2023
41b25b1
fix: remove few cra ignores
Aashiq-J Apr 25, 2023
61318f3
Merge branch 'extend-output' of https://github.com/terraform-ibm-modu…
Aashiq-J Apr 25, 2023
1ef3d2a
Merge branch 'main' into extend-output
vburckhardt Apr 26, 2023
9619b1e
test: add iks example and test
Aashiq-J Apr 28, 2023
76f134c
Merge branch 'main' into extend-output
Aashiq-J May 2, 2023
973f8d7
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J May 3, 2023
de56a8f
fix: update cluster terraform version
Aashiq-J May 3, 2023
89195d8
Merge branch 'main' into extend-output
Aashiq-J May 4, 2023
9555293
fix: update cra
Aashiq-J May 4, 2023
ad3c816
Merge branch 'extend-output' of https://github.com/terraform-ibm-modu…
Aashiq-J May 4, 2023
3571a29
fix: update version
Aashiq-J May 4, 2023
f90f9dc
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J May 4, 2023
da3c579
Merge branch 'extend-output' of https://github.com/terraform-ibm-modu…
Aashiq-J May 4, 2023
914f591
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J May 5, 2023
ca62bcc
Merge branch 'extend-output' of https://github.com/terraform-ibm-modu…
Aashiq-J May 5, 2023
6ff4e1d
Merge branch 'main' into extend-output
Aashiq-J May 9, 2023
27fe716
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J May 22, 2023
ef70703
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Jun 15, 2023
38d5e79
Merge branch 'main' into extend-output
Aashiq-J Jun 16, 2023
72fd75c
Merge branch 'main' into extend-output
Aashiq-J Jun 19, 2023
26a41db
docs: add doc for prevention of cluster re-create
Aashiq-J Jun 19, 2023
f4ae8ad
docs: update alternative approach
Aashiq-J Jun 19, 2023
c318b0b
Merge branch 'main' into extend-output
Aashiq-J Jun 20, 2023
f0c50d8
docs: update docs
Aashiq-J Jun 20, 2023
a76cf42
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Jun 23, 2023
aa4354a
docs: update README
Aashiq-J Jun 23, 2023
599c9b6
docs: update doc
Aashiq-J Jun 26, 2023
621da53
Merge branch 'main' into extend-output
Aashiq-J Jun 27, 2023
1ea1753
fix: update ibm provider version
Aashiq-J Jun 27, 2023
d182211
Merge branch 'main' into extend-output
Aashiq-J Jun 28, 2023
409d818
update steps (#487)
SirSpidey Jun 30, 2023
1c9b5db
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Jun 30, 2023
6468722
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Jul 3, 2023
11f1d18
feat: add scripts for migration
Aashiq-J Jul 3, 2023
2b5d03d
Merge branch 'main' into extend-output
Aashiq-J Jul 3, 2023
15f1ee7
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Jul 21, 2023
ba9aa21
Merge branch 'extend-output' of https://github.com/terraform-ibm-modu…
Aashiq-J Jul 21, 2023
fca2176
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Jul 24, 2023
7bdc9a5
fix: update example terraform version
Aashiq-J Jul 24, 2023
7ee1a22
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Oct 31, 2023
1836503
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Nov 6, 2023
349a673
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Nov 7, 2023
eb19d57
fix: merge with main
Aashiq-J Nov 7, 2023
60753f3
fix: precommit changes
Aashiq-J Nov 7, 2023
30e6078
fix: pr_test error fix
Aashiq-J Nov 7, 2023
bdcc7ec
fix: precommit changes
Aashiq-J Nov 7, 2023
a7230cc
fix: rename the folder
Aashiq-J Nov 9, 2023
2e6ea20
fix: add scripts to roks
Aashiq-J Nov 9, 2023
fe492ee
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Nov 29, 2023
ceaf384
fix: update the cluster module version
Aashiq-J Nov 29, 2023
894e37d
fix: update the catalog
Aashiq-J Nov 30, 2023
a7aac7e
test: comment out few ansible tasks
Aashiq-J Nov 30, 2023
cf10d3b
test: test changes in ansible script
Aashiq-J Nov 30, 2023
76e7160
test: test ansible
Aashiq-J Nov 30, 2023
a8ce2a5
fix: revert ansible changes
Aashiq-J Dec 1, 2023
f2fd0ee
fix: add api key
Aashiq-J Dec 1, 2023
0622319
fix: add plug-in installation
Aashiq-J Dec 4, 2023
99747d5
fix: add login
Aashiq-J Dec 4, 2023
3f58bdd
test: ansible test
Aashiq-J Dec 4, 2023
2eebfa0
Merge branch 'main' into extend-output
ocofaigh Dec 5, 2023
b6d3f6a
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Feb 2, 2024
16b17bf
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Feb 7, 2024
af11b0a
remove submodule
Aashiq-J Feb 7, 2024
6e46c99
remove submodule folder
Aashiq-J Feb 7, 2024
fe066e2
Add common-dev-assets
Aashiq-J Feb 7, 2024
fa138e6
udpate ocp versions
Aashiq-J Feb 7, 2024
c41d152
precommit changes
Aashiq-J Feb 7, 2024
69a2e57
udpate ansible script
Aashiq-J Feb 7, 2024
534046c
remove schematics plugin install
Aashiq-J Feb 7, 2024
246ea14
get region from id
Aashiq-J Feb 7, 2024
32fbcab
update the script
Aashiq-J Feb 9, 2024
3fdbe4f
update script
Aashiq-J Feb 9, 2024
883b164
Update deploy-pre-ansible-playbook.yaml
Aashiq-J Feb 13, 2024
fe88798
update template
Aashiq-J Feb 13, 2024
f885770
update ansible script
Aashiq-J Feb 14, 2024
36aa3ec
update ansible script
Aashiq-J Feb 14, 2024
7464b44
add worker pools update
Aashiq-J Feb 14, 2024
44934e6
Update deploy-pre-ansible-playbook.yaml
Aashiq-J Feb 16, 2024
fb06555
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Jun 27, 2024
32b2b37
update common-dev-assets
Aashiq-J Jun 27, 2024
10f2858
test
Aashiq-J Jul 3, 2024
69cfe6f
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
Aashiq-J Aug 30, 2024
329867b
test
Aashiq-J Aug 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions README.md

Large diffs are not rendered by default.

190 changes: 105 additions & 85 deletions cluster.tf
Original file line number Diff line number Diff line change
@@ -1,104 +1,124 @@
##############################################################################
# Find valid IKS/ROKS Cluster versions for region
##############################################################################

data "ibm_container_cluster_versions" "cluster_versions" {}

##############################################################################


##############################################################################
Aashiq-J marked this conversation as resolved.
Show resolved Hide resolved
# Cluster Locals
##############################################################################

locals {
worker_pools_map = module.dynamic_values.worker_pools_map # Convert list to map
clusters_map = module.dynamic_values.clusters_map # Convert list to map
default_kube_version = {
openshift = "${data.ibm_container_cluster_versions.cluster_versions.valid_openshift_versions[length(data.ibm_container_cluster_versions.cluster_versions.valid_openshift_versions) - 1]}_openshift"
iks = data.ibm_container_cluster_versions.cluster_versions.valid_kube_versions[length(data.ibm_container_cluster_versions.cluster_versions.valid_kube_versions) - 1]
}
workload_cluster = length(module.dynamic_values.clusters_map) >= 1 ? module.dynamic_values.clusters_map["${var.prefix}-workload-cluster"] : null
}

##############################################################################


##############################################################################
# Create IKS/ROKS on VPC Cluster
##############################################################################

resource "ibm_container_vpc_cluster" "cluster" {
for_each = local.clusters_map
name = "${var.prefix}-${each.value.name}"
vpc_id = each.value.vpc_id
resource_group_id = local.resource_groups[each.value.resource_group]
flavor = each.value.machine_type
worker_count = each.value.workers_per_subnet
kube_version = (
lookup(each.value, "kube_version", null) == "default" # if version is default
|| lookup(each.value, "kube_version", null) == null # or if version is null
? local.default_kube_version[each.value.kube_type] # use default
: each.value.kube_version # otherwise use value
)
update_all_workers = lookup(each.value, "update_all_workers", null)
tags = var.tags
wait_till = var.wait_till
entitlement = each.value.entitlement
cos_instance_crn = each.value.cos_instance_crn
pod_subnet = each.value.pod_subnet
service_subnet = each.value.service_subnet

dynamic "zones" {
for_each = each.value.subnets
content {
subnet_id = zones.value["id"]
name = zones.value["zone"]
}
module "workload_cluster" {
Aashiq-J marked this conversation as resolved.
Show resolved Hide resolved
depends_on = [
module.vpc, module.observability_instances
]
count = length(module.dynamic_values.clusters_map) >= 1 ? 1 : 0
source = "./ocp-all-inclusive"
Aashiq-J marked this conversation as resolved.
Show resolved Hide resolved
ibmcloud_api_key = var.ibmcloud_api_key
resource_group_id = local.resource_groups[local.workload_cluster.resource_group]
region = var.region
cluster_name = local.workload_cluster.cluster_name
vpc_id = local.workload_cluster.vpc_id
vpc_subnets = {
vsi-zone-1 = [
Aashiq-J marked this conversation as resolved.
Show resolved Hide resolved
for index, zone in local.workload_cluster.subnets :
{
id = zone.id
zone = zone.zone
cidr_block = zone.cidr
} if index == 0
],
vsi-zone-2 = [
for index, zone in local.workload_cluster.subnets :
{
id = zone.id
zone = zone.zone
cidr_block = zone.cidr
} if index == 1
],
vsi-zone-3 = [
for index, zone in local.workload_cluster.subnets :
{
id = zone.id
zone = zone.zone
cidr_block = zone.cidr
} if index == 2
]
}

dynamic "kms_config" {
for_each = each.value.kms_config == null ? [] : [each.value.kms_config]
content {
crk_id = module.key_management.key_map[kms_config.value.crk_name].key_id
instance_id = module.key_management.key_management_guid
private_endpoint = kms_config.value.private_endpoint
}
worker_pools = var.worker_pools
ocp_version = var.ocp_version
cluster_tags = var.resource_tags
use_existing_cos = true
existing_cos_id = local.workload_cluster.cos_instance_crn
existing_key_protect_root_key_id = module.key_management.key_map[local.workload_cluster.kms_config.crk_name].key_id
existing_key_protect_instance_guid = module.key_management.key_management_guid
logdna_instance_name = module.observability_instances[local.workload_cluster.cluster_name].logdna_name
logdna_ingestion_key = module.observability_instances[local.workload_cluster.cluster_name].logdna_ingestion_key
sysdig_instance_name = module.observability_instances[local.workload_cluster.cluster_name].sysdig_name
sysdig_access_key = module.observability_instances[local.workload_cluster.cluster_name].sysdig_access_key
# service_mesh_control_planes = [module.service_mesh_profiles.public_ingress_egress_no_transit]
providers = {
helm = helm.workload_cluster
}

disable_public_service_endpoint = true

timeouts {
create = "3h"
delete = "2h"
update = "3h"
}

}

##############################################################################


##############################################################################
# Create Worker Pools
##############################################################################

resource "ibm_container_vpc_worker_pool" "pool" {
for_each = local.worker_pools_map
vpc_id = each.value.vpc_id
resource_group_id = local.resource_groups[each.value.resource_group]
entitlement = each.value.entitlement
cluster = ibm_container_vpc_cluster.cluster[each.value.cluster_name].id
worker_pool_name = each.value.name
flavor = each.value.flavor
worker_count = each.value.workers_per_subnet
locals {
management_cluster = length(module.dynamic_values.clusters_map) == 2 ? module.dynamic_values.clusters_map["${var.prefix}-management-cluster"] : null
}

dynamic "zones" {
for_each = each.value.subnets
content {
subnet_id = zones.value["id"]
name = zones.value["zone"]
}
module "management_cluster" {
Aashiq-J marked this conversation as resolved.
Show resolved Hide resolved
depends_on = [
module.vpc, module.observability_instances
]
count = length(module.dynamic_values.clusters_map) == 2 ? 1 : 0
source = "./ocp-all-inclusive"
ibmcloud_api_key = var.ibmcloud_api_key
resource_group_id = local.resource_groups[local.management_cluster.resource_group]
region = var.region
cluster_name = local.management_cluster.cluster_name
vpc_id = local.management_cluster.vpc_id
vpc_subnets = {
vsi-zone-1 = [
for index, zone in local.management_cluster.subnets :
{
id = zone.id
zone = zone.zone
cidr_block = zone.cidr
} if index == 0
],
vsi-zone-2 = [
for index, zone in local.management_cluster.subnets :
{
id = zone.id
zone = zone.zone
cidr_block = zone.cidr
} if index == 1
],
vsi-zone-3 = [
for index, zone in local.management_cluster.subnets :
{
id = zone.id
zone = zone.zone
cidr_block = zone.cidr
} if index == 2
]
}
worker_pools = var.worker_pools
ocp_version = var.ocp_version
cluster_tags = var.resource_tags
use_existing_cos = true
existing_cos_id = local.management_cluster.cos_instance_crn
existing_key_protect_root_key_id = module.key_management.key_map[local.management_cluster.kms_config.crk_name].key_id
existing_key_protect_instance_guid = module.key_management.key_management_guid
logdna_instance_name = module.observability_instances[local.management_cluster.cluster_name].logdna_name
logdna_ingestion_key = module.observability_instances[local.management_cluster.cluster_name].logdna_ingestion_key
sysdig_instance_name = module.observability_instances[local.management_cluster.cluster_name].sysdig_name
sysdig_access_key = module.observability_instances[local.management_cluster.cluster_name].sysdig_access_key
# service_mesh_control_planes = [module.service_mesh_profiles.public_ingress_egress_no_transit]
providers = {
helm = helm.management_cluster
}
}

##############################################################################
18 changes: 11 additions & 7 deletions dynamic_values/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ module "ut_cluster_map" {
prefix = "ut"
clusters = [
{
name = "test-cluster"
vpc_name = "test"
subnet_names = ["subnet-1", "subnet-3"]
resource_group = "test-resource-group"
kube_type = "openshift"
cos_name = "data-cos"
entitlement = "cloud_pak"
name = "test-cluster"
vpc_name = "test"
subnet_names = ["subnet-1", "subnet-3"]
resource_group = "test-resource-group"
kube_type = "openshift"
cos_name = "data-cos"
logdna_plan = "7-day"
sysdig_plan = "graduated-tier"
enable_platform_logs = false
enable_platform_metrics = false
entitlement = "cloud_pak"
worker_pools = [
{
name = "logging-worker-pool"
Expand Down
18 changes: 11 additions & 7 deletions dynamic_values/cluster_worker_pools.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ module "ut_worker_pools" {
prefix = "ut"
clusters = [
{
name = "test-cluster"
vpc_name = "test"
subnet_names = ["subnet-1", "subnet-3"]
resource_group = "test-resource-group"
kube_type = "openshift"
cos_name = "data-cos"
entitlement = "cloud_pak"
name = "test-cluster"
vpc_name = "test"
subnet_names = ["subnet-1", "subnet-3"]
resource_group = "test-resource-group"
kube_type = "openshift"
cos_name = "data-cos"
entitlement = "cloud_pak"
logdna_plan = "7-day"
sysdig_plan = "graduated-tier"
enable_platform_logs = false
enable_platform_metrics = false
worker_pools = [
{
name = "logging-worker-pool"
Expand Down
1 change: 1 addition & 0 deletions dynamic_values/config_modules/clusters/clusters.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module "composed_cluster_map" {
vpc_id = var.vpc_modules[cluster.vpc_name].vpc_id
subnets = module.cluster_subnets[cluster.name].subnets
cos_instance_crn = cluster.kube_type == "openshift" ? var.cos_instance_ids[cluster.cos_name] : null
cluster_name = "${var.prefix}-${cluster.name}"
})
]
prefix = var.prefix
Expand Down
38 changes: 27 additions & 11 deletions module-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -625,47 +625,55 @@
"description": "A list of VSI with name, id, zone, and primary ipv4 address, VPC Name, and floating IP. This list only contains instances with a floating IP attached.",
"pos": {
"filename": "outputs.tf",
"line": 232
"line": 250
}
},
"resource_group_names": {
"name": "resource_group_names",
"description": "List of resource groups names used within landing zone.",
"pos": {
"filename": "outputs.tf",
"line": 155
"line": 173
}
},
"secrets_manager_name": {
"name": "secrets_manager_name",
"description": "Name of secrets manager instance",
"pos": {
"filename": "outputs.tf",
"line": 166
"line": 184
}
},
"security_group_names": {
"name": "security_group_names",
"description": "List of security group names",
"pos": {
"filename": "outputs.tf",
"line": 177
"line": 195
}
},
"service_authorization_names": {
"name": "service_authorization_names",
"description": "List of service authorization names",
"pos": {
"filename": "outputs.tf",
"line": 191
"line": 209
}
},
"ssh_key_names": {
"name": "ssh_key_names",
"description": "List of SSH key names",
"pos": {
"filename": "outputs.tf",
"line": 202
"line": 220
}
},
"subnet_details": {
"name": "subnet_details",
"description": "List of Subnet created",
"pos": {
"filename": "outputs.tf",
"line": 159
}
},
"subnet_names": {
Expand All @@ -681,7 +689,7 @@
"description": "Name of created transit gateway",
"pos": {
"filename": "outputs.tf",
"line": 213
"line": 231
}
},
"vpc_names": {
Expand All @@ -692,36 +700,44 @@
"line": 133
}
},
"vpcs": {
"name": "vpcs",
"description": "List of vpc created and vpc_id",
"pos": {
"filename": "outputs.tf",
"line": 149
}
},
"vpe_gateway_names": {
"name": "vpe_gateway_names",
"description": "VPE gateway names",
"pos": {
"filename": "outputs.tf",
"line": 274
"line": 292
}
},
"vpn_names": {
"name": "vpn_names",
"description": "List of VPN names",
"pos": {
"filename": "outputs.tf",
"line": 288
"line": 306
}
},
"vsi_data": {
"name": "vsi_data",
"description": "A list of VSI with name, id, zone, and primary ipv4 address, VPC Name, and floating IP.",
"pos": {
"filename": "outputs.tf",
"line": 250
"line": 268
}
},
"vsi_names": {
"name": "vsi_names",
"description": "List of VSI names",
"pos": {
"filename": "outputs.tf",
"line": 224
"line": 242
}
}
},
Expand Down
Loading