Skip to content

Commit 44cb53a

Browse files
Jordan-Williams2Jordan-Williams2
authored andcommitted
fix: address feedback
1 parent 86d5cf1 commit 44cb53a

File tree

7 files changed

+18
-15
lines changed

7 files changed

+18
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ No modules.
124124
| <a name="input_logs_agent_image_version"></a> [logs\_agent\_image\_version](#input\_logs\_agent\_image\_version) | The version of the Logs agent image to deploy. | `string` | `"1.5.1"` | no |
125125
| <a name="input_logs_agent_log_source_namespaces"></a> [logs\_agent\_log\_source\_namespaces](#input\_logs\_agent\_log\_source\_namespaces) | The list of namespaces from which logs should be forwarded by agent. If namespaces are not listed, logs from all namespaces will be sent. | `list(string)` | `[]` | no |
126126
| <a name="input_logs_agent_name"></a> [logs\_agent\_name](#input\_logs\_agent\_name) | The name of the Logs agent. The name is used in all Kubernetes and Helm resources in the cluster. | `string` | `"logs-agent"` | no |
127-
| <a name="input_logs_agent_namespace"></a> [logs\_agent\_namespace](#input\_logs\_agent\_namespace) | The namespace where the Logs agent is deployed. The default value is `ibm-agent`. | `string` | `"ibm-agent"` | no |
127+
| <a name="input_logs_agent_namespace"></a> [logs\_agent\_namespace](#input\_logs\_agent\_namespace) | The namespace where the Logs agent is deployed. The default value is `ibm-observe`. | `string` | `"ibm-observe"` | no |
128128
| <a name="input_logs_agent_resources"></a> [logs\_agent\_resources](#input\_logs\_agent\_resources) | The resources configuration for cpu/memory/storage. [Learn More](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-agent-helm-template-clusters#agent-helm-template-clusters-chart-options-resources) | <pre>object({<br/> limits = object({<br/> cpu = string<br/> memory = string<br/> })<br/> requests = object({<br/> cpu = string<br/> memory = string<br/> })<br/> })</pre> | <pre>{<br/> "limits": {<br/> "cpu": "500m",<br/> "memory": "3Gi"<br/> },<br/> "requests": {<br/> "cpu": "100m",<br/> "memory": "1Gi"<br/> }<br/>}</pre> | no |
129129
| <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 |
130130
| <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 |

examples/logs-agent-ocp/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module "resource_group" {
1515
##############################################################################
1616

1717
locals {
18-
logs_agent_namespace = "ibm-agent"
18+
logs_agent_namespace = "ibm-observe"
1919
logs_agent_name = "logs-agent"
2020
}
2121

@@ -32,7 +32,7 @@ module "trusted_profile" {
3232
service = "logs"
3333
}]
3434
}]
35-
# Set up fine-grained authorization for `logs-agent` running in ROKS cluster in `ibm-agent` namespace.
35+
# Set up fine-grained authorization for `logs-agent` running in ROKS cluster in `ibm-observe` namespace.
3636
trusted_profile_links = [{
3737
cr_type = "ROKS_SA"
3838
links = [{

ibm_catalog.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"label": "Fully Configurable",
3131
"name": "fully-configurable",
3232
"working_directory": "solutions/fully-configurable",
33-
"compliance": {},
3433
"iam_permissions": [
3534
{
3635
"service_name": "containers-kubernetes",

solutions/fully-configurable/DA-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Configuring Logs Agent Tolerations
22

3-
When you deploy the IBM Logs agent using the `terraform-ibm-logs-agent` module, you can configure the tolerations that the agent applies to its pods by using the `logs_agent_tolerations` variable. This variable allows you to specify tolerations for scheduling the logs agent pods on nodes with specific taints.
3+
When you deploy the IBM Logs agent using `Cloud automation for Logs agent`, you can configure the tolerations that the agent applies to its pods by using the `logs_agent_tolerations` variable. This variable allows you to specify tolerations for scheduling the logs agent pods on nodes with specific taints.
44

55
### Options for `logs_agent_tolerations`
66
- `key` (optional): The taint key that the toleration applies to.
@@ -39,7 +39,7 @@ The `logs_agent_tolerations` variable is used to configure the tolerations for t
3939

4040
# Configuring Logs Agent Additional Metadata
4141

42-
When you deploy the IBM logs agent using the `terraform-ibm-logs-agent` module, you can configure additional metadata fields to be added to the routed logs by using the `logs_agent_additional_metadata` variable. This variable allows you to specify key-value pairs of metadata that will be included in the logs.
42+
When you deploy the IBM logs agent using `Cloud automation for Logs agent`, you can configure additional metadata fields to be added to the routed logs by using the `logs_agent_additional_metadata` variable. This variable allows you to specify key-value pairs of metadata that will be included in the logs.
4343

4444
### Options for `logs_agent_additional_metadata`
4545
- `key` (optional): The metadata key to add to the logs.
@@ -74,7 +74,7 @@ The `logs_agent_additional_metadata` variable is used to configure additional me
7474

7575
# Configuring Logs Agent Resources
7676

77-
When you deploy the IBM Logs agent using the `terraform-ibm-logs-agent` module, you can configure the resource requests and limits for the logs agent pods by using the `logs_agent_resources` variable. This variable allows you to specify the CPU and memory resources allocated to the logs agent. [Learn More](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-agent-helm-template-clusters#agent-helm-template-clusters-chart-options-resources).
77+
When you deploy the IBM Logs agent using `Cloud automation for Logs agent`, you can configure the resource requests and limits for the logs agent pods by using the `logs_agent_resources` variable. This variable allows you to specify the CPU and memory resources allocated to the logs agent. [Learn More](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-agent-helm-template-clusters#agent-helm-template-clusters-chart-options-resources).
7878

7979
### Options for `logs_agent_resources`
8080
- `requests` (optional): Specifies the minimum amount of resources required. Includes:

solutions/fully-configurable/variables.tf

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ variable "cluster_resource_group_id" {
2121
variable "cluster_config_endpoint_type" {
2222
description = "Specify the type of endpoint to use to access the cluster configuration. Possible values: `default`, `private`, `vpe`, `link`. The `default` value uses the default endpoint of the cluster."
2323
type = string
24-
default = "private"
24+
default = "default"
2525
nullable = false # use default if null is passed in
2626
}
2727

@@ -84,15 +84,19 @@ variable "logs_agent_name" {
8484

8585
variable "logs_agent_namespace" {
8686
type = string
87-
description = "The namespace where the Logs agent is deployed. The default value is `ibm-agent`."
88-
default = "ibm-agent"
87+
description = "The namespace where the Logs agent is deployed. The default value is `ibm-observe`."
88+
default = "ibm-observe"
8989
nullable = false
9090
}
9191

9292
variable "logs_agent_trusted_profile_id" {
9393
type = string
9494
description = "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. Must provide a value for `logs_agent_iam_api_key` if `logs_agent_trusted_profile_id` is null."
9595
default = null
96+
validation {
97+
condition = !(var.logs_agent_iam_mode == "TrustedProfile" && var.logs_agent_trusted_profile_id == null)
98+
error_message = "The `logs_agent_trusted_profile_id` is required when `logs_agent_iam_mode` is set to `TrustedProfile`."
99+
}
96100
}
97101

98102
variable "logs_agent_iam_api_key" {

tests/resources/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module "ocp_base" {
8484
vpc_subnets = local.cluster_vpc_subnets
8585
worker_pools = local.worker_pools
8686
access_tags = []
87-
disable_outbound_traffic_protection = true # set as True to enable outbound traffic
87+
disable_outbound_traffic_protection = false
8888
}
8989

9090
##############################################################################
@@ -165,7 +165,7 @@ module "cloud_logs" {
165165
##############################################################################
166166

167167
locals {
168-
logs_agent_namespace = "ibm-agent"
168+
logs_agent_namespace = "ibm-observe"
169169
logs_agent_name = "logs-agent"
170170
}
171171

@@ -181,7 +181,7 @@ module "trusted_profile" {
181181
service = "logs"
182182
}]
183183
}]
184-
# Set up fine-grained authorization for `logs-agent` running in ROKS cluster in `ibm-agent` namespace.
184+
# Set up fine-grained authorization for `logs-agent` running in ROKS cluster in `ibm-observe` namespace.
185185
trusted_profile_links = [{
186186
cr_type = "ROKS_SA"
187187
links = [{

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ variable "logs_agent_name" {
9292

9393
variable "logs_agent_namespace" {
9494
type = string
95-
description = "The namespace where the Logs agent is deployed. The default value is `ibm-agent`."
96-
default = "ibm-agent"
95+
description = "The namespace where the Logs agent is deployed. The default value is `ibm-observe`."
96+
default = "ibm-observe"
9797
nullable = false
9898
}
9999

0 commit comments

Comments
 (0)