@@ -7,11 +7,6 @@ variable "salt" {
7
7
description = " Salt used to identify all components as part of the cell. Should be unique between cells."
8
8
}
9
9
10
- variable "certs_secret_name" {
11
- type = string
12
- default = " pgbouncer-certs"
13
- }
14
-
15
10
// PVC
16
11
variable "volume_name" {
17
12
type = string
@@ -21,6 +16,14 @@ variable "storage_size" {
21
16
type = string
22
17
}
23
18
19
+ variable "storage_class_name" {
20
+ type = string
21
+ }
22
+
23
+ variable "access_mode" {
24
+ type = string
25
+ }
26
+
24
27
variable "db_volume_claim" {
25
28
type = string
26
29
default = null
@@ -66,11 +69,54 @@ variable "postgres_config_name" {
66
69
default = null
67
70
}
68
71
72
+ variable "postgres_tolerations" {
73
+ type = list (object ({
74
+ key = string
75
+ operator = string
76
+ value = string
77
+ effect = string
78
+ }))
79
+ default = [
80
+ {
81
+ key = " demeter.run/compute-profile"
82
+ operator = " Equal"
83
+ value = " disk-intensive"
84
+ effect = " NoSchedule"
85
+ },
86
+ {
87
+ key = " demeter.run/compute-arch"
88
+ operator = " Equal"
89
+ value = " x86"
90
+ effect = " NoSchedule"
91
+ },
92
+ {
93
+ key = " demeter.run/availability-sla"
94
+ operator = " Equal"
95
+ value = " consistent"
96
+ effect = " NoSchedule"
97
+ }
98
+ ]
99
+ }
100
+
69
101
// PGBouncer
102
+
103
+ variable "certs_secret_name" {
104
+ type = string
105
+ default = " pgbouncer-certs"
106
+ }
107
+
108
+ variable "pgbouncer_cloud_provider" {
109
+ type = string
110
+ }
111
+
70
112
variable "pgbouncer_image_tag" {
71
113
default = " 1.21.0"
72
114
}
73
115
116
+ variable "pgbouncer_load_balancer" {
117
+ type = bool
118
+ }
119
+
74
120
variable "pgbouncer_replicas" {
75
121
default = 1
76
122
}
@@ -83,6 +129,34 @@ variable "pgbouncer_reloader_image_tag" {
83
129
type = string
84
130
}
85
131
132
+ variable "pgbouncer_tolerations" {
133
+ type = list (object ({
134
+ effect = string
135
+ key = string
136
+ operator = string
137
+ value = optional (string )
138
+ }))
139
+ default = [
140
+ {
141
+ effect = " NoSchedule"
142
+ key = " demeter.run/compute-profile"
143
+ operator = " Exists"
144
+ },
145
+ {
146
+ effect = " NoSchedule"
147
+ key = " demeter.run/compute-arch"
148
+ operator = " Equal"
149
+ value = " x86"
150
+ },
151
+ {
152
+ effect = " NoSchedule"
153
+ key = " demeter.run/availability-sla"
154
+ operator = " Equal"
155
+ value = " best-effort"
156
+ }
157
+ ]
158
+ }
159
+
86
160
// Instance
87
161
variable "instances" {
88
162
type = map (object ({
@@ -94,10 +168,9 @@ variable "instances" {
94
168
release = string
95
169
sync_status = string
96
170
enable_postgrest = bool
97
- topology_zone = optional (string )
98
- empty_args = optional (bool , false )
171
+ args = optional (list (string ), [])
99
172
custom_config = optional (bool , true )
100
- network_env_var = optional (string , false )
173
+ topology_zone = optional (string )
101
174
dbsync_resources = optional (object ({
102
175
requests = map (string )
103
176
limits = map (string )
@@ -114,4 +187,3 @@ variable "instances" {
114
187
})))
115
188
}))
116
189
}
117
-
0 commit comments