Skip to content

Commit

Permalink
Merge pull request #19 from AxonIQ/18-enable-devmode-on-the-properties
Browse files Browse the repository at this point in the history
Enable devmode on axonserver.properties
  • Loading branch information
checco committed Jul 18, 2024
2 parents 405537d + b6f2508 commit b9f725f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 25 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

```terraform
module "as_demo" {
source = "[email protected]:AxonIQ/terraform-axonserver-k8s.git?ref=v1.7"
source = "[email protected]:AxonIQ/terraform-axonserver-k8s.git?ref=v1.8"
axonserver_release = "2024.0.4"
java_version = "11"
Expand Down Expand Up @@ -53,7 +53,8 @@ module "as_demo" {
| <a name="input_events_storage"></a> [events\_storage](#input\_events\_storage) | Events PVC storage | `string` | `"5Gi"` | no |
| <a name="input_log_storage"></a> [log\_storage](#input\_log\_storage) | Log PVC storage | `string` | `"2Gi"` | no |
| <a name="input_data_storage"></a> [data\_storage](#input\_data\_storage) | Data PVC storage | `string` | `"10Gi"` | no |
| <a name="input_plugins_storage"></a> [plugins\_storage](#input\_plugins\_storage) | Plugins PVC storage | `string` | `"1Gi"` | no |
| <a name="input_plugins_storage"></a> [plugins\_storage](#input\_plugins\_storage) | Plugins PVC storage | `string` | `"1Gi"` | no |
| <a name="input_devmode_enabled"></a> [devmode\_enabled](#input\_devmode\_enabled | Axon Server devmode | `bool` | `false` | no |

## Outputs

Expand Down
2 changes: 2 additions & 0 deletions conf/axonserver.properties.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ axoniq.axonserver.accesscontrol.systemtokenfile=/axonserver/security/axonserver.
security.require-ssl=false

axoniq.axonserver.ssl.enabled=false

axoniq.axonserver.devmode.enabled=${devmode_enabled}
9 changes: 5 additions & 4 deletions configmap.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ data "template_file" "axonserver_properties" {
template = file("${path.module}/conf/axonserver.properties.tmpl")

vars = {
first_name = "${var.cluster_name}-1"
public_domain = var.public_domain
namespace = kubernetes_namespace.as_demo.id
internal_token = random_uuid.internal_token.result
first_name = "${var.cluster_name}-1"
public_domain = var.public_domain
namespace = kubernetes_namespace.as_demo.id
internal_token = random_uuid.internal_token.result
devmode_enabled = var.devmode_enabled
}
}

Expand Down
44 changes: 25 additions & 19 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,54 +42,60 @@ variable "console_authentication" {

variable "java_version" {
description = "Java runtime"
type = number
default = 11
type = number
default = 11
}

variable "resources_limits_cpu" {
description = "spec.container.resources.limits.cpu"
type = number
default = 1
type = number
default = 1
}

variable "resources_limits_memory" {
description = "spec.container.resources.limits.memory"
type = string
default = "1Gi"
type = string
default = "1Gi"
}

variable "resources_requests_cpu" {
description = "spec.container.resources.requests.cpu"
type = number
default = 1
type = number
default = 1
}

variable "resources_requests_memory" {
description = "spec.container.resources.requests.memory"
type = string
default = "1Gi"
type = string
default = "1Gi"
}

variable "events_storage" {
description = "Events PVC storage"
type = string
default = "5Gi"
type = string
default = "5Gi"
}

variable "log_storage" {
description = "Log PVC storage"
type = string
default = "2Gi"
type = string
default = "2Gi"
}

variable "data_storage" {
description = "Data PVC storage"
type = string
default = "10Gi"
type = string
default = "10Gi"
}

variable "plugins_storage" {
description = "Plugins PVC storage"
type = string
default = "1Gi"
}
type = string
default = "1Gi"
}

variable "devmode_enabled" {
description = "Axon Server devmode"
type = bool
default = false
}

0 comments on commit b9f725f

Please sign in to comment.