mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-19 04:30:55 +02:00
operator updates Postgres config and creates replication user
This commit is contained in:
@@ -662,8 +662,11 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
|
||||
Items: &apiextv1.JSONSchemaPropsOrArray{
|
||||
Schema: &apiextv1.JSONSchemaProps{
|
||||
Type: "object",
|
||||
Required: []string{"type"},
|
||||
Required: []string{"streamType"},
|
||||
Properties: map[string]apiextv1.JSONSchemaProps{
|
||||
"batchSize": {
|
||||
Type: "integer",
|
||||
},
|
||||
"database": {
|
||||
Type: "string",
|
||||
},
|
||||
@@ -671,10 +674,13 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
|
||||
Type: "object",
|
||||
AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{
|
||||
Schema: &apiextv1.JSONSchemaProps{
|
||||
Type: "string",
|
||||
Type: "string",
|
||||
},
|
||||
},
|
||||
},
|
||||
"queueName": {
|
||||
Type: "string",
|
||||
},
|
||||
"sqsArn": {
|
||||
Type: "string",
|
||||
},
|
||||
@@ -682,11 +688,11 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
|
||||
Type: "object",
|
||||
AdditionalProperties: &apiextv1.JSONSchemaPropsOrBool{
|
||||
Schema: &apiextv1.JSONSchemaProps{
|
||||
Type: "string",
|
||||
Type: "string",
|
||||
},
|
||||
},
|
||||
},
|
||||
"type": {
|
||||
"streamType": {
|
||||
Type: "string",
|
||||
Enum: []apiextv1.JSON{
|
||||
{
|
||||
|
||||
@@ -227,12 +227,11 @@ type ConnectionPooler struct {
|
||||
}
|
||||
|
||||
type Stream struct {
|
||||
Type string `json:"type"`
|
||||
Database string `json:"database,omitempty"`
|
||||
Tables map[string]string `json:"tables,omitempty"`
|
||||
Filter map[string]string `json:"filter,omitempty"`
|
||||
BatchSize uint32 `json:"batchSize,omitempty"`
|
||||
SqsArn string `json:"sqsArn,omitempty"`
|
||||
QueueName string `json:"queueName,omitempty"`
|
||||
User string `json:"user,omitempty"`
|
||||
StreamType string `json:"streamType"`
|
||||
Database string `json:"database,omitempty"`
|
||||
Tables map[string]string `json:"tables,omitempty"`
|
||||
Filter map[string]string `json:"filter,omitempty"`
|
||||
BatchSize uint32 `json:"batchSize,omitempty"`
|
||||
SqsArn string `json:"sqsArn,omitempty"`
|
||||
QueueName string `json:"queueName,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user