mirror of https://github.com/crossplane/docs.git
docs(compositions): Add docs for quantity transform (#292)
Signed-off-by: Maximilian Blatt <maximilian.blatt-extern@deutschebahn.com> Signed-off-by: Maximilian Blatt <maximilian.blatt-extern@deutschebahn.com>
This commit is contained in:
parent
0e8d93f756
commit
2deefae089
|
@ -779,6 +779,17 @@ true converts to integer 1 and float 1.0, while false converts to 0 and 0.0.
|
|||
toType: int
|
||||
```
|
||||
|
||||
Converting `string` to `float64` additionally supports parsing string in
|
||||
[K8s quantity format](https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity),
|
||||
such as `1000m` or `500 Mi`:
|
||||
|
||||
```yaml
|
||||
- type: convert
|
||||
convert:
|
||||
toType: float64
|
||||
format: quantity
|
||||
```
|
||||
|
||||
### Connection Details
|
||||
|
||||
Connection details secret of XR is an aggregated sum of the connection details
|
||||
|
|
Loading…
Reference in New Issue