Merge pull request #31990 from cici37/fixDoc
Fix incorrect field name in CRD examples
This commit is contained in:
commit
9fbadcb4e3
|
|
@ -725,7 +725,7 @@ For example:
|
||||||
properties:
|
properties:
|
||||||
spec:
|
spec:
|
||||||
type: object
|
type: object
|
||||||
x-kubernetes-validation-rules:
|
x-kubernetes-validations:
|
||||||
- rule: "self.minReplicas <= self.replicas"
|
- rule: "self.minReplicas <= self.replicas"
|
||||||
message: "replicas should be greater than or equal to minReplicas."
|
message: "replicas should be greater than or equal to minReplicas."
|
||||||
- rule: "self.replicas <= self.maxReplicas"
|
- rule: "self.replicas <= self.maxReplicas"
|
||||||
|
|
@ -829,7 +829,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
|
||||||
...
|
...
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
type: object
|
type: object
|
||||||
x-kubernetes-validation-rules:
|
x-kubernetes-validations:
|
||||||
- rule: "self.status.availableReplicas >= self.spec.minReplicas"
|
- rule: "self.status.availableReplicas >= self.spec.minReplicas"
|
||||||
properties:
|
properties:
|
||||||
spec:
|
spec:
|
||||||
|
|
@ -856,7 +856,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
|
||||||
properties:
|
properties:
|
||||||
spec:
|
spec:
|
||||||
type: object
|
type: object
|
||||||
x-kubernetes-validation-rules:
|
x-kubernetes-validations:
|
||||||
- rule: "has(self.foo)"
|
- rule: "has(self.foo)"
|
||||||
properties:
|
properties:
|
||||||
...
|
...
|
||||||
|
|
@ -874,7 +874,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
|
||||||
properties:
|
properties:
|
||||||
spec:
|
spec:
|
||||||
type: object
|
type: object
|
||||||
x-kubernetes-validation-rules:
|
x-kubernetes-validations:
|
||||||
- rule: "self['xyz'].foo > 0"
|
- rule: "self['xyz'].foo > 0"
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
...
|
...
|
||||||
|
|
@ -894,7 +894,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
|
||||||
...
|
...
|
||||||
foo:
|
foo:
|
||||||
type: array
|
type: array
|
||||||
x-kubernetes-validation-rules:
|
x-kubernetes-validations:
|
||||||
- rule: "size(self) == 1"
|
- rule: "size(self) == 1"
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -912,7 +912,7 @@ Xref: [Supported evaluation on CEL](https://github.com/google/cel-spec/blob/v0.6
|
||||||
...
|
...
|
||||||
foo:
|
foo:
|
||||||
type: integer
|
type: integer
|
||||||
x-kubernetes-validation-rules:
|
x-kubernetes-validations:
|
||||||
- rule: "self > 0"
|
- rule: "self > 0"
|
||||||
```
|
```
|
||||||
Examples:
|
Examples:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue