Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions charts/postgres-operator/crds/postgresqls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,6 @@ spec:
- standby_host
streams:
type: array
nullable: true
items:
type: object
required:
Expand Down Expand Up @@ -588,12 +587,12 @@ spec:
- SUPERUSER
- nosuperuser
- NOSUPERUSER
usersWithPasswordRotation:
usersWithInPlaceSecretRotation:
type: array
nullable: true
items:
type: string
usersWithInPlacePasswordRotation:
usersWithSecretRotation:
type: array
nullable: true
items:
Expand All @@ -612,17 +611,26 @@ spec:
type: array
items:
type: object
required:
- key
- operator
properties:
key:
type: string
operator:
type: string
enum:
- DoesNotExists
- Exists
- In
- NotIn
values:
type: array
items:
type: string
matchLabels:
type: object
x-kubernetes-preserve-unknown-fields: true
size:
type: string
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
Expand Down
14 changes: 11 additions & 3 deletions manifests/postgresql.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,6 @@ spec:
- standby_host
streams:
type: array
nullable: true
items:
type: object
required:
Expand Down Expand Up @@ -586,12 +585,12 @@ spec:
- SUPERUSER
- nosuperuser
- NOSUPERUSER
usersWithPasswordRotation:
usersWithInPlaceSecretRotation:
type: array
nullable: true
items:
type: string
usersWithInPlacePasswordRotation:
usersWithSecretRotation:
type: array
nullable: true
items:
Expand All @@ -610,17 +609,26 @@ spec:
type: array
items:
type: object
required:
- key
- operator
properties:
key:
type: string
operator:
type: string
enum:
- DoesNotExists
- Exists
- In
- NotIn
values:
type: array
items:
type: string
matchLabels:
type: object
x-kubernetes-preserve-unknown-fields: true
size:
type: string
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
Expand Down
14 changes: 7 additions & 7 deletions pkg/apis/acid.zalan.do/v1/crds.go
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
},
},
},
"usersWithSecretRotation": {
"usersWithInPlaceSecretRotation": {
Type: "array",
Nullable: true,
Items: &apiextv1.JSONSchemaPropsOrArray{
Expand All @@ -966,7 +966,7 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
},
},
},
"usersWithInPlaceSecretRotation": {
"usersWithSecretRotation": {
Type: "array",
Nullable: true,
Items: &apiextv1.JSONSchemaPropsOrArray{
Expand All @@ -990,7 +990,7 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
Items: &apiextv1.JSONSchemaPropsOrArray{
Schema: &apiextv1.JSONSchemaProps{
Type: "object",
Required: []string{"key", "operator", "values"},
Required: []string{"key", "operator"},
Properties: map[string]apiextv1.JSONSchemaProps{
"key": {
Type: "string",
Expand All @@ -999,16 +999,16 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
Type: "string",
Enum: []apiextv1.JSON{
{
Raw: []byte(`"In"`),
Raw: []byte(`"DoesNotExist"`),
},
{
Raw: []byte(`"NotIn"`),
Raw: []byte(`"Exists"`),
},
{
Raw: []byte(`"Exists"`),
Raw: []byte(`"In"`),
},
{
Raw: []byte(`"DoesNotExist"`),
Raw: []byte(`"NotIn"`),
},
},
},
Expand Down