mirror of https://github.com/istio/istio.io.git
Add `add` to expression reference. (#1902)
This commit is contained in:
parent
c9f8715bee
commit
98281c123f
|
|
@ -28,6 +28,7 @@ CEXL supports the following functions.
|
|||
|<code>||</code> |Logical OR | `(request.size == 200)` <code>||</code> `(request.auth.principal == "admin")`
|
||||
|`&&` |Logical AND | `(request.size == 200) && (request.auth.principal == "admin")`
|
||||
|`[ ]` |Map Access | `request.headers["x-id"]`
|
||||
|`+` |Add | `request.host + request.path`
|
||||
|<code>|</code> |First non empty | `source.labels["app"]` <code>|</code> `source.labels["svc"]` <code>|</code> `"unknown"`
|
||||
|`match` | Glob match |`match(destination.service, "*.ns1.svc.cluster.local")` | Matches prefix or suffix based on the location of `*`
|
||||
|`email` | Convert a textual e-mail into the `EMAIL_ADDRESS` type | `email("awesome@istio.io")` | Use the `email` function to create an `EMAIL_ADDRESS` literal.
|
||||
|
|
|
|||
Loading…
Reference in New Issue