Skip to content

Commit 2c37183

Browse files
committed
Update main.tf files to include operator_version, orchestratord_version, environmentd_version for materialize_instances
1 parent 7a06d09 commit 2c37183

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

examples/simple/main.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ module "materialize_infrastructure" {
5151

5252
# Enable and configure Materialize operator
5353
install_materialize_operator = true
54+
operator_version = var.operator_version
55+
orchestratord_version = var.orchestratord_version
5456

5557
# Once the operator is installed, you can define your Materialize instances here.
5658
materialize_instances = var.materialize_instances
@@ -80,12 +82,25 @@ variable "environment" {
8082
default = "dev"
8183
}
8284

85+
variable "operator_version" {
86+
description = "Version of the Materialize operator to install"
87+
type = string
88+
default = null
89+
}
90+
91+
variable "orchestratord_version" {
92+
description = "Version of the Materialize orchestrator to install"
93+
type = string
94+
default = "v0.130.4"
95+
}
96+
8397
variable "materialize_instances" {
8498
description = "List of Materialize instances to be created."
8599
type = list(object({
86100
name = string
87101
namespace = string
88102
database_name = string
103+
environmentd_version = optional(string, "v0.130.4")
89104
cpu_request = string
90105
memory_request = string
91106
memory_limit = string

main.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,11 @@ locals {
145145

146146
instances = [
147147
for instance in var.materialize_instances : {
148-
name = instance.name
149-
namespace = instance.namespace
150-
database_name = instance.database_name
151-
create_database = instance.create_database
148+
name = instance.name
149+
namespace = instance.namespace
150+
database_name = instance.database_name
151+
create_database = instance.create_database
152+
environmentd_version = instance.environmentd_version
152153

153154
metadata_backend_url = format(
154155
"postgres://%s:%s@%s/%s?sslmode=require",

0 commit comments

Comments
 (0)