@@ -2913,7 +2913,6 @@ spec:
29132913 More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
29142914 items:
29152915 type: string
2916- minItems: 1
29172916 type: array
29182917 x-kubernetes-list-type: atomic
29192918 dataSource:
@@ -3027,11 +3026,7 @@ spec:
30273026 If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
30283027 otherwise to an implementation-defined value. Requests cannot exceed Limits.
30293028 More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
3030- required:
3031- - storage
30323029 type: object
3033- required:
3034- - requests
30353030 type: object
30363031 selector:
30373032 description: selector is a label query over
@@ -3110,10 +3105,18 @@ spec:
31103105 description: volumeName is the binding reference
31113106 to the PersistentVolume backing this claim.
31123107 type: string
3113- required:
3114- - accessModes
3115- - resources
31163108 type: object
3109+ x-kubernetes-validations:
3110+ - fieldPath: .accessModes
3111+ message: missing accessModes
3112+ reason: FieldValueRequired
3113+ rule: has(self.accessModes) && size(self.accessModes)
3114+ > 0
3115+ - fieldPath: .resources.requests.storage
3116+ message: missing storage request
3117+ reason: FieldValueRequired
3118+ rule: has(self.resources) && has(self.resources.requests)
3119+ && has(self.resources.requests.storage)
31173120 required:
31183121 - volumeClaimSpec
31193122 type: object
@@ -6365,6 +6368,17 @@ spec:
63656368 to the PersistentVolume backing this claim.
63666369 type: string
63676370 type: object
6371+ x-kubernetes-validations:
6372+ - fieldPath: .accessModes
6373+ message: missing accessModes
6374+ reason: FieldValueRequired
6375+ rule: has(self.accessModes) && size(self.accessModes)
6376+ > 0
6377+ - fieldPath: .resources.requests.storage
6378+ message: missing storage request
6379+ reason: FieldValueRequired
6380+ rule: has(self.resources) && has(self.resources.requests)
6381+ && has(self.resources.requests.storage)
63686382 required:
63696383 - volumeClaimSpec
63706384 type: object
@@ -10039,7 +10053,6 @@ spec:
1003910053 More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
1004010054 items:
1004110055 type: string
10042- minItems: 1
1004310056 type: array
1004410057 x-kubernetes-list-type: atomic
1004510058 dataSource:
@@ -10149,11 +10162,7 @@ spec:
1014910162 If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
1015010163 otherwise to an implementation-defined value. Requests cannot exceed Limits.
1015110164 More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
10152- required:
10153- - storage
1015410165 type: object
10155- required:
10156- - requests
1015710166 type: object
1015810167 selector:
1015910168 description: selector is a label query over volumes to consider
@@ -10231,10 +10240,17 @@ spec:
1023110240 description: volumeName is the binding reference to the
1023210241 PersistentVolume backing this claim.
1023310242 type: string
10234- required:
10235- - accessModes
10236- - resources
1023710243 type: object
10244+ x-kubernetes-validations:
10245+ - fieldPath: .accessModes
10246+ message: missing accessModes
10247+ reason: FieldValueRequired
10248+ rule: has(self.accessModes) && size(self.accessModes) > 0
10249+ - fieldPath: .resources.requests.storage
10250+ message: missing storage request
10251+ reason: FieldValueRequired
10252+ rule: has(self.resources) && has(self.resources.requests)
10253+ && has(self.resources.requests.storage)
1023810254 metadata:
1023910255 description: Metadata contains metadata for custom resources
1024010256 properties:
@@ -10602,6 +10618,17 @@ spec:
1060210618 the PersistentVolume backing this claim.
1060310619 type: string
1060410620 type: object
10621+ x-kubernetes-validations:
10622+ - fieldPath: .accessModes
10623+ message: missing accessModes
10624+ reason: FieldValueRequired
10625+ rule: has(self.accessModes) && size(self.accessModes)
10626+ > 0
10627+ - fieldPath: .resources.requests.storage
10628+ message: missing storage request
10629+ reason: FieldValueRequired
10630+ rule: has(self.resources) && has(self.resources.requests)
10631+ && has(self.resources.requests.storage)
1060510632 name:
1060610633 description: |-
1060710634 The name for the tablespace, used as the path name for the volume.
@@ -10848,7 +10875,6 @@ spec:
1084810875 More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
1084910876 items:
1085010877 type: string
10851- minItems: 1
1085210878 type: array
1085310879 x-kubernetes-list-type: atomic
1085410880 dataSource:
@@ -10958,11 +10984,7 @@ spec:
1095810984 If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
1095910985 otherwise to an implementation-defined value. Requests cannot exceed Limits.
1096010986 More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
10961- required:
10962- - storage
1096310987 type: object
10964- required:
10965- - requests
1096610988 type: object
1096710989 selector:
1096810990 description: selector is a label query over volumes to consider
@@ -11040,10 +11062,17 @@ spec:
1104011062 description: volumeName is the binding reference to the
1104111063 PersistentVolume backing this claim.
1104211064 type: string
11043- required:
11044- - accessModes
11045- - resources
1104611065 type: object
11066+ x-kubernetes-validations:
11067+ - fieldPath: .accessModes
11068+ message: missing accessModes
11069+ reason: FieldValueRequired
11070+ rule: has(self.accessModes) && size(self.accessModes) > 0
11071+ - fieldPath: .resources.requests.storage
11072+ message: missing storage request
11073+ reason: FieldValueRequired
11074+ rule: has(self.resources) && has(self.resources.requests)
11075+ && has(self.resources.requests.storage)
1104711076 required:
1104811077 - dataVolumeClaimSpec
1104911078 type: object
0 commit comments