Skip to content

Commit 9eb7517

Browse files
authored
sync CRD with example manifests (zalando#1869)
1 parent 8b6664f commit 9eb7517

File tree

3 files changed

+29
-13
lines changed

3 files changed

+29
-13
lines changed

charts/postgres-operator/crds/postgresqls.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ spec:
479479
- standby_host
480480
streams:
481481
type: array
482-
nullable: true
483482
items:
484483
type: object
485484
required:
@@ -588,12 +587,12 @@ spec:
588587
- SUPERUSER
589588
- nosuperuser
590589
- NOSUPERUSER
591-
usersWithPasswordRotation:
590+
usersWithInPlaceSecretRotation:
592591
type: array
593592
nullable: true
594593
items:
595594
type: string
596-
usersWithInPlacePasswordRotation:
595+
usersWithSecretRotation:
597596
type: array
598597
nullable: true
599598
items:
@@ -612,17 +611,26 @@ spec:
612611
type: array
613612
items:
614613
type: object
614+
required:
615+
- key
616+
- operator
615617
properties:
616618
key:
617619
type: string
618620
operator:
619621
type: string
622+
enum:
623+
- DoesNotExists
624+
- Exists
625+
- In
626+
- NotIn
620627
values:
621628
type: array
622629
items:
623630
type: string
624631
matchLabels:
625632
type: object
633+
x-kubernetes-preserve-unknown-fields: true
626634
size:
627635
type: string
628636
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'

manifests/postgresql.crd.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ spec:
477477
- standby_host
478478
streams:
479479
type: array
480-
nullable: true
481480
items:
482481
type: object
483482
required:
@@ -586,12 +585,12 @@ spec:
586585
- SUPERUSER
587586
- nosuperuser
588587
- NOSUPERUSER
589-
usersWithPasswordRotation:
588+
usersWithInPlaceSecretRotation:
590589
type: array
591590
nullable: true
592591
items:
593592
type: string
594-
usersWithInPlacePasswordRotation:
593+
usersWithSecretRotation:
595594
type: array
596595
nullable: true
597596
items:
@@ -610,17 +609,26 @@ spec:
610609
type: array
611610
items:
612611
type: object
612+
required:
613+
- key
614+
- operator
613615
properties:
614616
key:
615617
type: string
616618
operator:
617619
type: string
620+
enum:
621+
- DoesNotExists
622+
- Exists
623+
- In
624+
- NotIn
618625
values:
619626
type: array
620627
items:
621628
type: string
622629
matchLabels:
623630
type: object
631+
x-kubernetes-preserve-unknown-fields: true
624632
size:
625633
type: string
626634
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'

pkg/apis/acid.zalan.do/v1/crds.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
957957
},
958958
},
959959
},
960-
"usersWithSecretRotation": {
960+
"usersWithInPlaceSecretRotation": {
961961
Type: "array",
962962
Nullable: true,
963963
Items: &apiextv1.JSONSchemaPropsOrArray{
@@ -966,7 +966,7 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
966966
},
967967
},
968968
},
969-
"usersWithInPlaceSecretRotation": {
969+
"usersWithSecretRotation": {
970970
Type: "array",
971971
Nullable: true,
972972
Items: &apiextv1.JSONSchemaPropsOrArray{
@@ -990,7 +990,7 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
990990
Items: &apiextv1.JSONSchemaPropsOrArray{
991991
Schema: &apiextv1.JSONSchemaProps{
992992
Type: "object",
993-
Required: []string{"key", "operator", "values"},
993+
Required: []string{"key", "operator"},
994994
Properties: map[string]apiextv1.JSONSchemaProps{
995995
"key": {
996996
Type: "string",
@@ -999,16 +999,16 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
999999
Type: "string",
10001000
Enum: []apiextv1.JSON{
10011001
{
1002-
Raw: []byte(`"In"`),
1002+
Raw: []byte(`"DoesNotExist"`),
10031003
},
10041004
{
1005-
Raw: []byte(`"NotIn"`),
1005+
Raw: []byte(`"Exists"`),
10061006
},
10071007
{
1008-
Raw: []byte(`"Exists"`),
1008+
Raw: []byte(`"In"`),
10091009
},
10101010
{
1011-
Raw: []byte(`"DoesNotExist"`),
1011+
Raw: []byte(`"NotIn"`),
10121012
},
10131013
},
10141014
},

0 commit comments

Comments
 (0)