Skip to content

Commit 11c2e81

Browse files
authored
include status subresource in validation (zalando#744)
* include status subresource in validation
1 parent 5515640 commit 11c2e81

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

charts/postgres-operator/crds/operatorconfigurations.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,7 @@ spec:
298298
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
299299
scalyr_server_url:
300300
type: string
301+
status:
302+
type: object
303+
additionalProperties:
304+
type: string

manifests/operatorconfiguration.crd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,7 @@ spec:
274274
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
275275
scalyr_server_url:
276276
type: string
277+
status:
278+
type: object
279+
additionalProperties:
280+
type: string

manifests/postgresql.crd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,3 +325,7 @@ spec:
325325
type: string
326326
subPath:
327327
type: string
328+
status:
329+
type: object
330+
additionalProperties:
331+
type: string

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,14 @@ var PostgresCRDResourceValidation = apiextv1beta1.CustomResourceValidation{
578578
},
579579
},
580580
},
581+
"status": {
582+
Type: "object",
583+
AdditionalProperties: &apiextv1beta1.JSONSchemaPropsOrBool{
584+
Schema: &apiextv1beta1.JSONSchemaProps{
585+
Type: "string",
586+
},
587+
},
588+
},
581589
},
582590
},
583591
}
@@ -994,6 +1002,14 @@ var OperatorConfigCRDResourceValidation = apiextv1beta1.CustomResourceValidation
9941002
},
9951003
},
9961004
},
1005+
"status": {
1006+
Type: "object",
1007+
AdditionalProperties: &apiextv1beta1.JSONSchemaPropsOrBool{
1008+
Schema: &apiextv1beta1.JSONSchemaProps{
1009+
Type: "string",
1010+
},
1011+
},
1012+
},
9971013
},
9981014
},
9991015
}

0 commit comments

Comments
 (0)