Skip to content

Commit 56709c4

Browse files
committed
Add support for custom environmentd environment variables
1 parent 42b3e5e commit 56709c4

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ No modules.
7777
| <a name="input_helm_repository"></a> [helm\_repository](#input\_helm\_repository) | Repository URL for the Materialize operator Helm chart. Leave empty if using local chart. | `string` | `"https://materializeinc.github.io/materialize/"` | no |
7878
| <a name="input_helm_values"></a> [helm\_values](#input\_helm\_values) | Values to pass to the Helm chart | `any` | n/a | yes |
7979
| <a name="input_install_metrics_server"></a> [install\_metrics\_server](#input\_install\_metrics\_server) | Whether to install the metrics-server | `bool` | `true` | no |
80-
| <a name="input_instances"></a> [instances](#input\_instances) | Configuration for Materialize instances | <pre>list(object({<br/> name = string<br/> namespace = optional(string)<br/> create_database = optional(bool, true)<br/> database_name = string<br/> metadata_backend_url = string<br/> persist_backend_url = string<br/> license_key = optional(string)<br/> environmentd_version = optional(string, "v0.130.12") # META: mz version<br/> environmentd_extra_args = optional(list(string), [])<br/> cpu_request = optional(string, "1")<br/> memory_request = optional(string, "1Gi")<br/> memory_limit = optional(string, "1Gi")<br/> in_place_rollout = optional(bool, true)<br/> request_rollout = optional(string, "00000000-0000-0000-0000-000000000001")<br/> force_rollout = optional(string, "00000000-0000-0000-0000-000000000001")<br/> balancer_memory_request = optional(string, "256Mi")<br/> balancer_memory_limit = optional(string, "256Mi")<br/> balancer_cpu_request = optional(string, "100m")<br/> }))</pre> | `[]` | no |
80+
| <a name="input_instances"></a> [instances](#input\_instances) | Configuration for Materialize instances | <pre>list(object({<br/> name = string<br/> namespace = optional(string)<br/> create_database = optional(bool, true)<br/> database_name = string<br/> metadata_backend_url = string<br/> persist_backend_url = string<br/> license_key = optional(string)<br/> environmentd_version = optional(string, "v0.130.12") # META: mz version<br/> environmentd_extra_env = optional(list(object({<br/> name = string<br/> value = string<br/> })), [])<br/> cpu_request = optional(string, "1")<br/> memory_request = optional(string, "1Gi")<br/> memory_limit = optional(string, "1Gi")<br/> in_place_rollout = optional(bool, true)<br/> request_rollout = optional(string, "00000000-0000-0000-0000-000000000001")<br/> force_rollout = optional(string, "00000000-0000-0000-0000-000000000001")<br/> balancer_memory_request = optional(string, "256Mi")<br/> balancer_memory_limit = optional(string, "256Mi")<br/> balancer_cpu_request = optional(string, "100m")<br/> }))</pre> | `[]` | no |
8181
| <a name="input_metrics_server_version"></a> [metrics\_server\_version](#input\_metrics\_server\_version) | Version of metrics-server to install | `string` | `"3.12.2"` | no |
8282
| <a name="input_monitoring_namespace"></a> [monitoring\_namespace](#input\_monitoring\_namespace) | Namespace for monitoring resources | `string` | `"monitoring"` | no |
8383
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace prefix for all resources | `string` | n/a | yes |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ resource "kubernetes_manifest" "materialize_instances" {
8686
requestRollout = lookup(each.value, "request_rollout", null)
8787
forceRollout = lookup(each.value, "force_rollout", null)
8888

89-
environmentdExtraArgs = length(lookup(each.value, "environmentd_extra_args", [])) > 0 ? each.value.environmentd_extra_args : null
89+
environmentdExtraEnv = length(lookup(each.value, "environmentd_extra_env", [])) > 0 ? each.value.environmentd_extra_env : null
9090

9191
environmentdResourceRequirements = {
9292
limits = {

variables.tf

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,18 @@ variable "install_metrics_server" {
6565
variable "instances" {
6666
description = "Configuration for Materialize instances"
6767
type = list(object({
68-
name = string
69-
namespace = optional(string)
70-
create_database = optional(bool, true)
71-
database_name = string
72-
metadata_backend_url = string
73-
persist_backend_url = string
74-
license_key = optional(string)
75-
environmentd_version = optional(string, "v0.130.12") # META: mz version
76-
environmentd_extra_args = optional(list(string), [])
68+
name = string
69+
namespace = optional(string)
70+
create_database = optional(bool, true)
71+
database_name = string
72+
metadata_backend_url = string
73+
persist_backend_url = string
74+
license_key = optional(string)
75+
environmentd_version = optional(string, "v0.130.12") # META: mz version
76+
environmentd_extra_env = optional(list(object({
77+
name = string
78+
value = string
79+
})), [])
7780
cpu_request = optional(string, "1")
7881
memory_request = optional(string, "1Gi")
7982
memory_limit = optional(string, "1Gi")

0 commit comments

Comments
 (0)