Skip to content

Commit b21c28e

Browse files
authored
feat: add resources and activemq opts memory variables in the activemq module (#202)
2 parents 994abc2 + b9210b7 commit b21c28e

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

storage/onpremise/activemq/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ No modules.
5858

5959
| Name | Description | Type | Default | Required |
6060
|------|-------------|------|---------|:--------:|
61-
| <a name="input_activemq"></a> [activemq](#input\_activemq) | Parameters of ActiveMQ | <pre>object({<br> image = string<br> tag = string<br> node_selector = any<br> image_pull_secrets = string<br> })</pre> | n/a | yes |
61+
| <a name="input_activemq"></a> [activemq](#input\_activemq) | Parameters of ActiveMQ | <pre>object({<br> image = string<br> tag = string<br> node_selector = any<br> image_pull_secrets = string<br> limits = optional(map(string))<br> requests = optional(map(string))<br> activemq_opts_memory = optional(string)<br> })</pre> | n/a | yes |
6262
| <a name="input_adapter_absolute_path"></a> [adapter\_absolute\_path](#input\_adapter\_absolute\_path) | The adapter's absolut path | `string` | `"/adapters/queue/amqp/ArmoniK.Core.Adapters.Amqp.dll"` | no |
6363
| <a name="input_adapter_class_name"></a> [adapter\_class\_name](#input\_adapter\_class\_name) | Name of the adapter's class | `string` | `"ArmoniK.Core.Adapters.Amqp.QueueBuilder"` | no |
6464
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace of ArmoniK storage resources | `string` | n/a | yes |

storage/onpremise/activemq/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ resource "kubernetes_deployment" "activemq" {
5555
name = "activemq"
5656
image = "${var.activemq.image}:${var.activemq.tag}"
5757
image_pull_policy = "IfNotPresent"
58+
resources {
59+
requests = var.activemq.requests
60+
limits = var.activemq.limits
61+
}
62+
env {
63+
name = "ACTIVEMQ_OPTS_MEMORY"
64+
value = var.activemq.activemq_opts_memory
65+
}
5866
volume_mount {
5967
name = "activemq-storage-secret-volume"
6068
mount_path = "/credentials/"

storage/onpremise/activemq/variables.tf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ variable "namespace" {
88
variable "activemq" {
99
description = "Parameters of ActiveMQ"
1010
type = object({
11-
image = string
12-
tag = string
13-
node_selector = any
14-
image_pull_secrets = string
11+
image = string
12+
tag = string
13+
node_selector = any
14+
image_pull_secrets = string
15+
limits = optional(map(string))
16+
requests = optional(map(string))
17+
activemq_opts_memory = optional(string)
1518
})
1619
}
1720

0 commit comments

Comments
 (0)