Skip to content

Commit

Permalink
chore(deps): update terraform-module (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
terraform-ibm-modules-ops authored Oct 2, 2024
1 parent 563514f commit e1f4f37
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": "go.sum|^.secrets.baseline$",
"lines": null
},
"generated_at": "2023-12-11T07:11:22Z",
"generated_at": "2023-12-12T07:11:22Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down
7 changes: 3 additions & 4 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module "resource_group" {
source = "terraform-ibm-modules/resource-group/ibm"
version = "1.1.5"
version = "1.1.6"
# if an existing resource group is not set (null) create a new one using prefix
resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null
existing_resource_group_name = var.resource_group
Expand Down Expand Up @@ -70,9 +70,8 @@ locals {
module "ocp_base" {
count = var.is_openshift && var.is_vpc_cluster ? 1 : 0
source = "terraform-ibm-modules/base-ocp-vpc/ibm"
version = "3.25.0"
version = "3.31.1"
cluster_name = var.prefix
ibmcloud_api_key = var.ibmcloud_api_key
resource_group_id = module.resource_group.resource_group_id
region = var.region
force_delete_storage = true
Expand Down Expand Up @@ -155,7 +154,7 @@ resource "ibm_network_vlan" "private_vlan" {

module "scc_wp" {
source = "terraform-ibm-modules/scc-workload-protection/ibm"
version = "v1.3.0"
version = "v1.4.0"
name = "${var.prefix}-scc-wp"
region = var.region
resource_group_id = module.resource_group.resource_group_id
Expand Down
15 changes: 8 additions & 7 deletions examples/secure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
##############################################################################
module "resource_group" {
source = "terraform-ibm-modules/resource-group/ibm"
version = "1.1.5"
version = "1.1.6"
# if an existing resource group is not set (null) create a new one using prefix
resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null
existing_resource_group_name = var.resource_group
Expand All @@ -15,7 +15,7 @@ module "resource_group" {

module "kp_all_inclusive" {
source = "terraform-ibm-modules/kms-all-inclusive/ibm"
version = "4.14.1"
version = "4.15.13"
key_protect_instance_name = "${var.prefix}-kp-instance"
resource_group_id = module.resource_group.resource_group_id
region = var.region
Expand Down Expand Up @@ -71,9 +71,8 @@ locals {

module "ocp_base" {
source = "terraform-ibm-modules/base-ocp-vpc/ibm"
version = "3.25.0"
version = "3.31.1"
cluster_name = var.prefix
ibmcloud_api_key = var.ibmcloud_api_key
resource_group_id = module.resource_group.resource_group_id
region = var.region
force_delete_storage = true
Expand All @@ -82,13 +81,15 @@ module "ocp_base" {
vpc_id = module.slz_vpc.vpc_id
vpc_subnets = local.cluster_vpc_subnets
worker_pools = local.worker_pools
ocp_version = "4.14"
tags = var.resource_tags
kms_config = {
instance_id = module.kp_all_inclusive.kms_guid
crk_id = module.kp_all_inclusive.keys["ocp.${var.prefix}-cluster-key"].key_id
}
access_tags = var.access_tags
# workaround for the issue https://github.ibm.com/GoldenEye/issues/issues/10743
# when the issue is fixed on IKS so the destruction of default workers pool is correctly managed on the provider/clusters service the workaround should be removed
import_default_worker_pool_on_create = false
}

#############################################################################
Expand All @@ -97,7 +98,7 @@ module "ocp_base" {

module "slz_vpc" {
source = "terraform-ibm-modules/landing-zone-vpc/ibm"
version = "7.18.2"
version = "7.19.0"
resource_group_id = module.resource_group.resource_group_id
region = var.region
name = "wp-vpc"
Expand All @@ -124,7 +125,7 @@ module "slz_vpc" {

module "scc_wp" {
source = "terraform-ibm-modules/scc-workload-protection/ibm"
version = "v1.3.0"
version = "v1.4.0"
name = "${var.prefix}-scc-wp"
region = var.region
resource_group_id = module.resource_group.resource_group_id
Expand Down
8 changes: 8 additions & 0 deletions tests/pr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ var ignoreUpdates = []string{
"module.scc_wp_agent.helm_release.scc_wp_agent",
}

var ImplicitDestroyOCP = []string{
// workaround for the issue https://github.ibm.com/GoldenEye/issues/issues/10743
// when the issue is fixed on IKS, so the destruction of default workers pool is correctly managed on provider/clusters service the next two entries should be removed
"'module.ocp_base[0].ibm_container_vpc_worker_pool.pool[\"default\"]'",
}

func setupOptions(t *testing.T, prefix string, dir string) *testhelper.TestOptions {
options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{
Testing: t,
Expand All @@ -35,6 +41,7 @@ func TestRunBasicExample(t *testing.T) {
t.Parallel()

options := setupOptions(t, "scc-wp-a-basic", basicExampleDir)
options.ImplicitDestroy = ImplicitDestroyOCP

output, err := options.RunTestConsistency()
assert.Nil(t, err, "This should not have errored")
Expand All @@ -45,6 +52,7 @@ func TestRunBasicUpgradeExample(t *testing.T) {
t.Parallel()

options := setupOptions(t, "scc-wp-a-basic-upg", basicExampleDir)
options.ImplicitDestroy = ImplicitDestroyOCP

output, err := options.RunTestUpgrade()
if !options.UpgradeTestSkipped {
Expand Down

0 comments on commit e1f4f37

Please sign in to comment.