@@ -725,7 +725,7 @@ For example:
725
725
properties:
726
726
spec:
727
727
type: object
728
- x-kubernetes-validation-rules :
728
+ x-kubernetes-validations :
729
729
- rule: "self.minReplicas <= self.replicas"
730
730
message: "replicas should be greater than or equal to minReplicas."
731
731
- rule: "self.replicas <= self.maxReplicas"
@@ -829,7 +829,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
829
829
...
830
830
openAPIV3Schema:
831
831
type: object
832
- x-kubernetes-validation-rules :
832
+ x-kubernetes-validations :
833
833
- rule: "self.status.availableReplicas >= self.spec.minReplicas"
834
834
properties:
835
835
spec:
@@ -856,7 +856,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
856
856
properties:
857
857
spec:
858
858
type: object
859
- x-kubernetes-validation-rules :
859
+ x-kubernetes-validations :
860
860
- rule: "has(self.foo)"
861
861
properties:
862
862
...
@@ -874,7 +874,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
874
874
properties:
875
875
spec:
876
876
type: object
877
- x-kubernetes-validation-rules :
877
+ x-kubernetes-validations :
878
878
- rule: "self['xyz'].foo > 0"
879
879
additionalProperties:
880
880
...
@@ -894,7 +894,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
894
894
...
895
895
foo:
896
896
type: array
897
- x-kubernetes-validation-rules :
897
+ x-kubernetes-validations :
898
898
- rule: "size(self) == 1"
899
899
items:
900
900
type: string
@@ -912,7 +912,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
912
912
...
913
913
foo:
914
914
type: integer
915
- x-kubernetes-validation-rules :
915
+ x-kubernetes-validations :
916
916
- rule: "self > 0"
917
917
` ` `
918
918
Examples :
0 commit comments