reflect new pooler parameter in validation + define same pooler image everywhere
This commit is contained in:
parent
2bba673f1d
commit
4d12615c0d
|
|
@ -327,18 +327,21 @@ spec:
|
||||||
connection_pool_user:
|
connection_pool_user:
|
||||||
type: string
|
type: string
|
||||||
#default: "pooler"
|
#default: "pooler"
|
||||||
connection_pool_number_of_instances:
|
|
||||||
type: integer
|
|
||||||
#default: 1
|
|
||||||
connection_pool_image:
|
connection_pool_image:
|
||||||
type: string
|
type: string
|
||||||
#default: "registry.opensource.zalan.do/acid/pgbouncer:1.0.0"
|
#default: "registry.opensource.zalan.do/acid/pgbouncer:master-5"
|
||||||
|
connection_pool_max_db_connections:
|
||||||
|
type: integer
|
||||||
|
#default: 60
|
||||||
connection_pool_mode:
|
connection_pool_mode:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
- "session"
|
- "session"
|
||||||
- "transaction"
|
- "transaction"
|
||||||
#default: "transaction"
|
#default: "transaction"
|
||||||
|
connection_pool_number_of_instances:
|
||||||
|
type: integer
|
||||||
|
#default: 1
|
||||||
connection_pool_default_cpu_limit:
|
connection_pool_default_cpu_limit:
|
||||||
type: string
|
type: string
|
||||||
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
|
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
|
||||||
|
|
|
||||||
|
|
@ -111,8 +111,13 @@ spec:
|
||||||
properties:
|
properties:
|
||||||
dockerImage:
|
dockerImage:
|
||||||
type: string
|
type: string
|
||||||
|
maxDBConnections:
|
||||||
|
type: integer
|
||||||
mode:
|
mode:
|
||||||
type: string
|
type: string
|
||||||
|
enum:
|
||||||
|
- "session"
|
||||||
|
- "transaction"
|
||||||
numberOfInstances:
|
numberOfInstances:
|
||||||
type: integer
|
type: integer
|
||||||
minimum: 1
|
minimum: 1
|
||||||
|
|
@ -244,22 +249,6 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
replicaLoadBalancer: # deprecated
|
replicaLoadBalancer: # deprecated
|
||||||
type: boolean
|
type: boolean
|
||||||
connectionPool:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
user:
|
|
||||||
type: string
|
|
||||||
number_of_instances:
|
|
||||||
type: integer
|
|
||||||
dockerImage:
|
|
||||||
type: string
|
|
||||||
mode:
|
|
||||||
type: string
|
|
||||||
enum:
|
|
||||||
- "session"
|
|
||||||
- "transaction"
|
|
||||||
resources:
|
resources:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ data:
|
||||||
# connection_pool_default_cpu_request: "1"
|
# connection_pool_default_cpu_request: "1"
|
||||||
# connection_pool_default_memory_limit: 100m
|
# connection_pool_default_memory_limit: 100m
|
||||||
# connection_pool_default_memory_request: "100Mi"
|
# connection_pool_default_memory_request: "100Mi"
|
||||||
connection_pool_image: "registry.opensource.zalan.do/acid/pgbouncer:master-3"
|
connection_pool_image: "registry.opensource.zalan.do/acid/pgbouncer:master-5"
|
||||||
# connection_pool_number_of_instances: 1
|
# connection_pool_number_of_instances: 1
|
||||||
# connection_pool_mode: "transaction"
|
# connection_pool_mode: "transaction"
|
||||||
# connection_pool_schema: "pooler"
|
# connection_pool_schema: "pooler"
|
||||||
|
|
|
||||||
|
|
@ -303,18 +303,21 @@ spec:
|
||||||
connection_pool_user:
|
connection_pool_user:
|
||||||
type: string
|
type: string
|
||||||
#default: "pooler"
|
#default: "pooler"
|
||||||
connection_pool_number_of_instances:
|
|
||||||
type: integer
|
|
||||||
#default: 1
|
|
||||||
connection_pool_image:
|
connection_pool_image:
|
||||||
type: string
|
type: string
|
||||||
#default: "registry.opensource.zalan.do/acid/pgbouncer:1.0.0"
|
#default: "registry.opensource.zalan.do/acid/pgbouncer:master-5"
|
||||||
|
connection_pool_max_db_connections:
|
||||||
|
type: integer
|
||||||
|
#default: 60
|
||||||
connection_pool_mode:
|
connection_pool_mode:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
- "session"
|
- "session"
|
||||||
- "transaction"
|
- "transaction"
|
||||||
#default: "transaction"
|
#default: "transaction"
|
||||||
|
connection_pool_number_of_instances:
|
||||||
|
type: integer
|
||||||
|
#default: 1
|
||||||
connection_pool_default_cpu_limit:
|
connection_pool_default_cpu_limit:
|
||||||
type: string
|
type: string
|
||||||
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
|
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ configuration:
|
||||||
connection_pool_default_cpu_request: "1"
|
connection_pool_default_cpu_request: "1"
|
||||||
connection_pool_default_memory_limit: 100m
|
connection_pool_default_memory_limit: 100m
|
||||||
connection_pool_default_memory_request: "100Mi"
|
connection_pool_default_memory_request: "100Mi"
|
||||||
connection_pool_image: "registry.opensource.zalan.do/acid/pgbouncer:master-3"
|
connection_pool_image: "registry.opensource.zalan.do/acid/pgbouncer:master-5"
|
||||||
connection_pool_number_of_instances: 1
|
connection_pool_number_of_instances: 1
|
||||||
connection_pool_mode: "transaction"
|
connection_pool_mode: "transaction"
|
||||||
# connection_pool_schema: "pooler"
|
# connection_pool_schema: "pooler"
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,8 @@ spec:
|
||||||
properties:
|
properties:
|
||||||
dockerImage:
|
dockerImage:
|
||||||
type: string
|
type: string
|
||||||
|
maxDBConnections:
|
||||||
|
type: integer
|
||||||
mode:
|
mode:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
|
|
|
||||||
|
|
@ -182,6 +182,9 @@ var PostgresCRDResourceValidation = apiextv1beta1.CustomResourceValidation{
|
||||||
"dockerImage": {
|
"dockerImage": {
|
||||||
Type: "string",
|
Type: "string",
|
||||||
},
|
},
|
||||||
|
"maxDBConnections": {
|
||||||
|
Type: "integer",
|
||||||
|
},
|
||||||
"mode": {
|
"mode": {
|
||||||
Type: "string",
|
Type: "string",
|
||||||
Enum: []apiextv1beta1.JSON{
|
Enum: []apiextv1beta1.JSON{
|
||||||
|
|
@ -1129,9 +1132,8 @@ var OperatorConfigCRDResourceValidation = apiextv1beta1.CustomResourceValidation
|
||||||
"connection_pool_image": {
|
"connection_pool_image": {
|
||||||
Type: "string",
|
Type: "string",
|
||||||
},
|
},
|
||||||
"connection_pool_replicas": {
|
"connection_pool_max_db_connections": {
|
||||||
Type: "integer",
|
Type: "integer",
|
||||||
Minimum: &min1,
|
|
||||||
},
|
},
|
||||||
"connection_pool_mode": {
|
"connection_pool_mode": {
|
||||||
Type: "string",
|
Type: "string",
|
||||||
|
|
@ -1144,6 +1146,10 @@ var OperatorConfigCRDResourceValidation = apiextv1beta1.CustomResourceValidation
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"connection_pool_number_of_instances": {
|
||||||
|
Type: "integer",
|
||||||
|
Minimum: &min1,
|
||||||
|
},
|
||||||
"connection_pool_schema": {
|
"connection_pool_schema": {
|
||||||
Type: "string",
|
Type: "string",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -88,13 +88,13 @@ type ConnectionPool struct {
|
||||||
NumberOfInstances *int32 `name:"connection_pool_number_of_instances" default:"1"`
|
NumberOfInstances *int32 `name:"connection_pool_number_of_instances" default:"1"`
|
||||||
Schema string `name:"connection_pool_schema" default:"pooler"`
|
Schema string `name:"connection_pool_schema" default:"pooler"`
|
||||||
User string `name:"connection_pool_user" default:"pooler"`
|
User string `name:"connection_pool_user" default:"pooler"`
|
||||||
Image string `name:"connection_pool_image" default:"pgbouncer:1.0"`
|
Image string `name:"connection_pool_image" default:"registry.opensource.zalan.do/acid/pgbouncer:master-5"`
|
||||||
Mode string `name:"connection_pool_mode" default:"session"`
|
Mode string `name:"connection_pool_mode" default:"transaction"`
|
||||||
|
MaxDBConnections *int32 `name:"connection_pool_max_db_connections" default:"60"`
|
||||||
ConnPoolDefaultCPURequest string `name:"connection_pool_default_cpu_request" default:"100m"`
|
ConnPoolDefaultCPURequest string `name:"connection_pool_default_cpu_request" default:"100m"`
|
||||||
ConnPoolDefaultMemoryRequest string `name:"connection_pool_default_memory_request" default:"100Mi"`
|
ConnPoolDefaultMemoryRequest string `name:"connection_pool_default_memory_request" default:"100Mi"`
|
||||||
ConnPoolDefaultCPULimit string `name:"connection_pool_default_cpu_limit" default:"3"`
|
ConnPoolDefaultCPULimit string `name:"connection_pool_default_cpu_limit" default:"3"`
|
||||||
ConnPoolDefaultMemoryLimit string `name:"connection_pool_default_memory_limit" default:"1Gi"`
|
ConnPoolDefaultMemoryLimit string `name:"connection_pool_default_memory_limit" default:"1Gi"`
|
||||||
MaxDBConnections *int32 `name:"connection_pool_max_db_connections" default:"60"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config describes operator config
|
// Config describes operator config
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue