mirror of https://github.com/crossplane/docs.git
docs snapshot for crossplane version `master`
This commit is contained in:
parent
dcff5d0687
commit
a07f9afdcf
|
|
@ -438,14 +438,14 @@ composed resource field.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Patch from the XR's spec.parameters.location field and the
|
# Patch from the XR's spec.parameters.location field and the
|
||||||
# metadata.annotations[crossplane.io/claim-name] annotation to the composed
|
# metadata.labels[crossplane.io/claim-name] label to the composed
|
||||||
# resource's spec.forProvider.administratorLogin field.
|
# resource's spec.forProvider.administratorLogin field.
|
||||||
- type: CombineFromComposite
|
- type: CombineFromComposite
|
||||||
combine:
|
combine:
|
||||||
# The patch will only be applied when all variables have non-zero values.
|
# The patch will only be applied when all variables have non-zero values.
|
||||||
variables:
|
variables:
|
||||||
- fromFieldPath: spec.parameters.location
|
- fromFieldPath: spec.parameters.location
|
||||||
- fromFieldPath: metadata.annotations[crossplane.io/claim-name]
|
- fromFieldPath: metadata.labels[crossplane.io/claim-name]
|
||||||
strategy: string
|
strategy: string
|
||||||
string:
|
string:
|
||||||
fmt: "%s-%s"
|
fmt: "%s-%s"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue