mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-08 11:11:44 +02:00
introduce applicationId for separate stream CRDs
This commit is contained in:
@@ -664,8 +664,11 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
|
||||
Items: &apiextv1.JSONSchemaPropsOrArray{
|
||||
Schema: &apiextv1.JSONSchemaProps{
|
||||
Type: "object",
|
||||
Required: []string{"database", "tables"},
|
||||
Required: []string{"applicationId", "database", "tables"},
|
||||
Properties: map[string]apiextv1.JSONSchemaProps{
|
||||
"applicationId": {
|
||||
Type: "string",
|
||||
},
|
||||
"batchSize": {
|
||||
Type: "integer",
|
||||
},
|
||||
|
||||
@@ -230,10 +230,11 @@ type ConnectionPooler struct {
|
||||
}
|
||||
|
||||
type Stream struct {
|
||||
Database string `json:"database"`
|
||||
Tables map[string]StreamTable `json:"tables"`
|
||||
Filter map[string]string `json:"filter,omitempty"`
|
||||
BatchSize uint32 `json:"batchSize,omitempty"`
|
||||
ApplicationId string `json:"applicationId"`
|
||||
Database string `json:"database"`
|
||||
Tables map[string]StreamTable `json:"tables"`
|
||||
Filter map[string]string `json:"filter,omitempty"`
|
||||
BatchSize uint32 `json:"batchSize,omitempty"`
|
||||
}
|
||||
|
||||
type StreamTable struct {
|
||||
|
||||
Reference in New Issue
Block a user