Skip to content

Commit 84b4133

Browse files
authored
Merge pull request #42968 from matheusfm/cel-playground
Add CEL Playground link
2 parents d5271aa + c64c783 commit 84b4133

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

content/en/docs/reference/access-authn-authz/validating-admission-policy.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ The following is an example of a ValidatingAdmissionPolicy.
6767
to validate the request. If an expression evaluates to false, the validation check is enforced
6868
according to the `spec.failurePolicy` field.
6969

70+
{{< note >}}
71+
You can quickly test CEL expressions in [CEL Playground](https://playcel.undistro.io).
72+
{{< /note >}}
73+
7074
To configure a validating admission policy for use in a cluster, a binding is required.
7175
The following is an example of a ValidatingAdmissionPolicyBinding.:
7276

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,10 @@ The CronTab "my-new-cron-object" is invalid:
849849
* spec: Invalid value: map[string]interface {}{"maxReplicas":10, "minReplicas":0, "replicas":20}: failed rule: self.replicas <= self.maxReplicas
850850
```
851851

852+
{{< note >}}
853+
You can quickly test CEL expressions in [CEL Playground](https://playcel.undistro.io).
854+
{{< /note >}}
855+
852856
Validation rules are compiled when CRDs are created/updated.
853857
The request of CRDs create/update will fail if compilation of validation rules fail.
854858
Compilation process includes type checking as well.

0 commit comments

Comments
 (0)