Skip to content

Commit

Permalink
feat: add resources and activemq opts memory variables in the activem…
Browse files Browse the repository at this point in the history
…q module (#202)
  • Loading branch information
aneojgurhem authored Jan 28, 2025
2 parents 994abc2 + b9210b7 commit b21c28e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion storage/onpremise/activemq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <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 |
| <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 |
| <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 |
| <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 |
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace of ArmoniK storage resources | `string` | n/a | yes |
Expand Down
8 changes: 8 additions & 0 deletions storage/onpremise/activemq/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ resource "kubernetes_deployment" "activemq" {
name = "activemq"
image = "${var.activemq.image}:${var.activemq.tag}"
image_pull_policy = "IfNotPresent"
resources {
requests = var.activemq.requests
limits = var.activemq.limits
}
env {
name = "ACTIVEMQ_OPTS_MEMORY"
value = var.activemq.activemq_opts_memory
}
volume_mount {
name = "activemq-storage-secret-volume"
mount_path = "/credentials/"
Expand Down
11 changes: 7 additions & 4 deletions storage/onpremise/activemq/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ variable "namespace" {
variable "activemq" {
description = "Parameters of ActiveMQ"
type = object({
image = string
tag = string
node_selector = any
image_pull_secrets = string
image = string
tag = string
node_selector = any
image_pull_secrets = string
limits = optional(map(string))
requests = optional(map(string))
activemq_opts_memory = optional(string)
})
}

Expand Down

0 comments on commit b21c28e

Please sign in to comment.