docs snapshot for crossplane version `master`

This commit is contained in:
Crossplane 2022-11-18 23:43:42 +00:00
parent d8b0918321
commit f4c5f5d858
1 changed files with 19 additions and 0 deletions

View File

@ -557,6 +557,25 @@ You can use the following types of transform on a value being patched:
au-east: Australia East
```
`match`. A more complex version of `map` that can match different kinds of
patterns. It should be used if more advanced pattern matchings than a simple
string equality check are required.
The result of the first matching pattern is used as the output of this
transform.
```yaml
- type: match
match:
patterns:
- type: literal # Not needed. This is the default.
literal: us-west
result: West US
- type: regexp
regexp: '^af-.*'
result: Somewhere in Africa
fallbackValue: Unknown
```
`math`. Transforms values using math. The input value must be an integer.
Currently only `multiply` is supported.