Skip to content

Commit a704a46

Browse files
authored
Merge branch 'main' into Aashiq-J-patch-1
2 parents 77484aa + 63b75b0 commit a704a46

File tree

18 files changed

+193
-936
lines changed

18 files changed

+193
-936
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- created
88
jobs:
99
call-terraform-ci-pipeline:
10-
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/[email protected].4
10+
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/[email protected].5
1111
secrets: inherit
1212
with:
1313
craSCCv2: true

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ on:
88

99
jobs:
1010
call-terraform-release-pipeline:
11-
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/[email protected].4
11+
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/[email protected].5
1212
secrets: inherit

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ You need the following permissions to run this module.
9696
|------|---------|
9797
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
9898
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >= 2.15.0, <3.0.0 |
99-
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.69.2, <2.0.0 |
99+
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.70.0, <2.0.0 |
100100

101101
### Modules
102102

@@ -149,6 +149,8 @@ You need the following permissions to run this module.
149149
| <a name="input_logs_agent_selected_log_source_paths"></a> [logs\_agent\_selected\_log\_source\_paths](#input\_logs\_agent\_selected\_log\_source\_paths) | The list of specific log sources paths. Logs will only be collected from the specified log source paths. If no paths are specified, it will send logs from `/var/log/containers`. | `list(string)` | `[]` | no |
150150
| <a name="input_logs_agent_tolerations"></a> [logs\_agent\_tolerations](#input\_logs\_agent\_tolerations) | List of tolerations to apply to Logs agent. The default value means a pod will run on every node. | <pre>list(object({<br/> key = optional(string)<br/> operator = optional(string)<br/> value = optional(string)<br/> effect = optional(string)<br/> tolerationSeconds = optional(number)<br/> }))</pre> | <pre>[<br/> {<br/> "operator": "Exists"<br/> }<br/>]</pre> | no |
151151
| <a name="input_logs_agent_trusted_profile"></a> [logs\_agent\_trusted\_profile](#input\_logs\_agent\_trusted\_profile) | The IBM Cloud trusted profile ID. Used only when `logs_agent_iam_mode` is set to `TrustedProfile`. The trusted profile must have an IBM Cloud Logs `Sender` role. | `string` | `null` | no |
152+
| <a name="input_wait_till"></a> [wait\_till](#input\_wait\_till) | To avoid long wait times when you run your Terraform code, you can specify the stage when you want Terraform to mark the cluster resource creation as completed. Depending on what stage you choose, the cluster creation might not be fully completed and continues to run in the background. However, your Terraform code can continue to run without waiting for the cluster to be fully created. Supported args are `MasterNodeReady`, `OneWorkerNodeReady`, `IngressReady` and `Normal` | `string` | `"Normal"` | no |
153+
| <a name="input_wait_till_timeout"></a> [wait\_till\_timeout](#input\_wait\_till\_timeout) | Timeout for wait\_till in minutes. | `number` | `90` | no |
152154

153155
### Outputs
154156

examples/obs-agent-iks/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ resource "time_sleep" "wait_operators" {
129129

130130
module "observability_instances" {
131131
source = "terraform-ibm-modules/observability-instances/ibm"
132-
version = "3.0.2"
132+
version = "3.4.1"
133133
resource_group_id = module.resource_group.resource_group_id
134134
region = var.region
135135
cloud_logs_plan = "standard"

examples/obs-agent-iks/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
required_providers {
77
ibm = {
88
source = "ibm-cloud/ibm"
9-
version = "1.69.2"
9+
version = "1.70.0"
1010
}
1111
helm = {
1212
source = "hashicorp/helm"

examples/obs-agent-ocp/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ locals {
2222

2323
module "trusted_profile" {
2424
source = "terraform-ibm-modules/trusted-profile/ibm"
25-
version = "1.0.4"
25+
version = "1.0.5"
2626
trusted_profile_name = "${var.prefix}-profile"
2727
trusted_profile_description = "Logs agent Trusted Profile"
2828
# As a `Sender`, you can send logs to your IBM Cloud Logs service instance - but not query or tail logs. This role is meant to be used by agents and routers sending logs.
@@ -104,7 +104,7 @@ locals {
104104

105105
module "ocp_base" {
106106
source = "terraform-ibm-modules/base-ocp-vpc/ibm"
107-
version = "3.34.0"
107+
version = "3.39.0"
108108
resource_group_id = module.resource_group.resource_group_id
109109
region = var.region
110110
tags = var.resource_tags
@@ -130,7 +130,7 @@ data "ibm_container_cluster_config" "cluster_config" {
130130

131131
module "observability_instances" {
132132
source = "terraform-ibm-modules/observability-instances/ibm"
133-
version = "3.0.2"
133+
version = "3.4.1"
134134
resource_group_id = module.resource_group.resource_group_id
135135
region = var.region
136136
cloud_logs_plan = "standard"

examples/obs-agent-ocp/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
required_providers {
77
ibm = {
88
source = "ibm-cloud/ibm"
9-
version = ">= 1.69.2"
9+
version = ">= 1.70.0"
1010
}
1111
helm = {
1212
source = "hashicorp/helm"

main.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,21 @@ data "ibm_container_vpc_cluster" "cluster" {
77
count = var.is_vpc_cluster ? 1 : 0
88
name = var.cluster_id
99
resource_group_id = var.cluster_resource_group_id
10+
wait_till = var.wait_till
11+
wait_till_timeout = var.wait_till_timeout
1012
}
1113

1214
data "ibm_container_cluster" "cluster" {
1315
count = var.is_vpc_cluster ? 0 : 1
1416
name = var.cluster_id
1517
resource_group_id = var.cluster_resource_group_id
18+
wait_till = var.wait_till
19+
wait_till_timeout = var.wait_till_timeout
1620
}
1721

1822
# Download cluster config which is required to connect to cluster
1923
data "ibm_container_cluster_config" "cluster_config" {
20-
cluster_name_id = var.cluster_id
24+
cluster_name_id = var.is_vpc_cluster ? data.ibm_container_vpc_cluster.cluster[0].name : data.ibm_container_cluster.cluster[0].name
2125
resource_group_id = var.cluster_resource_group_id
2226
config_dir = "${path.module}/kubeconfig"
2327
endpoint_type = var.cluster_config_endpoint_type != "default" ? var.cluster_config_endpoint_type : null # null value represents default
@@ -27,7 +31,7 @@ locals {
2731
# LOCALS
2832
cluster_name = var.is_vpc_cluster ? data.ibm_container_vpc_cluster.cluster[0].resource_name : data.ibm_container_cluster.cluster[0].resource_name # Not publically documented in provider. See https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4485
2933
cloud_monitoring_chart_location = "${path.module}/chart/sysdig-agent"
30-
cloud_monitoring_image_tag_digest = "13.4.1@sha256:469f3eee8d00ce563041770e875555dbabf02daa57cc489d9e66010707cdc621" # datasource: icr.io/ext/sysdig/agent
34+
cloud_monitoring_image_tag_digest = "13.7.2@sha256:660bba401573996b722587c5ebfe4ca41550312143913d45c87153530df18bd7" # datasource: icr.io/ext/sysdig/agent
3135
cloud_monitoring_agent_registry = "icr.io/ext/sysdig/agent"
3236
cloud_monitoring_agent_tags = var.cloud_monitoring_add_cluster_name ? concat(["ibm.containers-kubernetes.cluster.name:${local.cluster_name}"], var.cloud_monitoring_agent_tags) : var.cloud_monitoring_agent_tags
3337
cloud_monitoring_host = var.cloud_monitoring_enabled ? var.cloud_monitoring_endpoint_type == "private" ? "ingest.private.${var.cloud_monitoring_instance_region}.monitoring.cloud.ibm.com" : "logs.${var.cloud_monitoring_instance_region}.monitoring.cloud.ibm.com" : null
@@ -144,5 +148,7 @@ module "logs_agent" {
144148
cloud_logs_ingress_endpoint = var.cloud_logs_ingress_endpoint
145149
cloud_logs_ingress_port = var.cloud_logs_ingress_port
146150
is_vpc_cluster = var.is_vpc_cluster
151+
wait_till = var.wait_till
152+
wait_till_timeout = var.wait_till_timeout
147153
}
148154
/** Logs Agent Configuration End **/

modules/logs-agent/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ No modules.
9999
| <a name="input_logs_agent_selected_log_source_paths"></a> [logs\_agent\_selected\_log\_source\_paths](#input\_logs\_agent\_selected\_log\_source\_paths) | The list of specific log sources paths. Logs will only be collected from the specified log source paths. If no paths are specified, it will send logs from `/var/log/containers`. | `list(string)` | `[]` | no |
100100
| <a name="input_logs_agent_tolerations"></a> [logs\_agent\_tolerations](#input\_logs\_agent\_tolerations) | List of tolerations to apply to Logs agent. The default value means a pod will run on every node. | <pre>list(object({<br/> key = optional(string)<br/> operator = optional(string)<br/> value = optional(string)<br/> effect = optional(string)<br/> tolerationSeconds = optional(number)<br/> }))</pre> | <pre>[<br/> {<br/> "operator": "Exists"<br/> }<br/>]</pre> | no |
101101
| <a name="input_logs_agent_trusted_profile"></a> [logs\_agent\_trusted\_profile](#input\_logs\_agent\_trusted\_profile) | The IBM Cloud trusted profile ID. Used only when `logs_agent_iam_mode` is set to `TrustedProfile`. The trusted profile must have an IBM Cloud Logs `Sender` role. | `string` | `null` | no |
102+
| <a name="input_wait_till"></a> [wait\_till](#input\_wait\_till) | To avoid long wait times when you run your Terraform code, you can specify the stage when you want Terraform to mark the cluster resource creation as completed. Depending on what stage you choose, the cluster creation might not be fully completed and continues to run in the background. However, your Terraform code can continue to run without waiting for the cluster to be fully created. Supported args are `MasterNodeReady`, `OneWorkerNodeReady`, `IngressReady` and `Normal` | `string` | `"Normal"` | no |
103+
| <a name="input_wait_till_timeout"></a> [wait\_till\_timeout](#input\_wait\_till\_timeout) | Timeout for wait\_till in minutes. | `number` | `90` | no |
102104

103105
### Outputs
104106

0 commit comments

Comments
 (0)