patroni slots is not an array but a nested hash map

This commit is contained in:
Felix Kunde 2019-10-24 14:45:44 +02:00
parent abaae95bac
commit 5f19587dda
4 changed files with 32 additions and 32 deletions

View File

@ -162,8 +162,8 @@ spec:
items:
type: string
slots:
type: array
items:
type: object
additionalProperties:
type: object
additionalProperties:
type: string

View File

@ -30,7 +30,7 @@ spec:
# Expert section
enableShmVolume: true
# spiloFSGroup: 103
spiloFSGroup: 103
postgresql:
version: "11"
parameters:
@ -53,9 +53,9 @@ spec:
- hostssl all all 0.0.0.0/0 md5
- host all all 0.0.0.0/0 md5
# slots:
# - permanent_physical_1:
# permanent_physical_1:
# type: physical
# - permanent_logical_1:
# permanent_logical_1:
# type: logical
# database: foo
# plugin: pgoutput

View File

@ -122,8 +122,8 @@ spec:
items:
type: string
slots:
type: array
items:
type: object
additionalProperties:
type: object
additionalProperties:
type: string

View File

@ -263,8 +263,8 @@ var postgresCRDResourceValidation = apiextv1beta1.JSONSchemaProps{
},
},
"slots": {
Type: "array",
Items: &apiextv1beta1.JSONSchemaPropsOrArray{
Type: "object",
AdditionalProperties: &apiextv1beta1.JSONSchemaPropsOrBool{
Schema: &apiextv1beta1.JSONSchemaProps{
Type: "object",
AdditionalProperties: &apiextv1beta1.JSONSchemaPropsOrBool{