Skip to content

Commit 9fbadcb

Browse files
authored
Merge pull request #31990 from cici37/fixDoc
Fix incorrect field name in CRD examples
2 parents 23f0c15 + 002985c commit 9fbadcb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ For example:
725725
properties:
726726
spec:
727727
type: object
728-
x-kubernetes-validation-rules:
728+
x-kubernetes-validations:
729729
- rule: "self.minReplicas <= self.replicas"
730730
message: "replicas should be greater than or equal to minReplicas."
731731
- rule: "self.replicas <= self.maxReplicas"
@@ -829,7 +829,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
829829
...
830830
openAPIV3Schema:
831831
type: object
832-
x-kubernetes-validation-rules:
832+
x-kubernetes-validations:
833833
- rule: "self.status.availableReplicas >= self.spec.minReplicas"
834834
properties:
835835
spec:
@@ -856,7 +856,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
856856
properties:
857857
spec:
858858
type: object
859-
x-kubernetes-validation-rules:
859+
x-kubernetes-validations:
860860
- rule: "has(self.foo)"
861861
properties:
862862
...
@@ -874,7 +874,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
874874
properties:
875875
spec:
876876
type: object
877-
x-kubernetes-validation-rules:
877+
x-kubernetes-validations:
878878
- rule: "self['xyz'].foo > 0"
879879
additionalProperties:
880880
...
@@ -894,7 +894,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
894894
...
895895
foo:
896896
type: array
897-
x-kubernetes-validation-rules:
897+
x-kubernetes-validations:
898898
- rule: "size(self) == 1"
899899
items:
900900
type: string
@@ -912,7 +912,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
912912
...
913913
foo:
914914
type: integer
915-
x-kubernetes-validation-rules:
915+
x-kubernetes-validations:
916916
- rule: "self > 0"
917917
```
918918
Examples:

0 commit comments

Comments
 (0)