Skip to content

Commit

Permalink
Fix broken example
Browse files Browse the repository at this point in the history
This was not actually doing any patching - it was skipping the optional
field path patch and relying on the bucket already having a region set
in its base.

Signed-off-by: Nic Cope <[email protected]>
  • Loading branch information
negz committed Jan 24, 2024
1 parent c8bd5a1 commit a7c2fe8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions example/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@ spec:
base:
apiVersion: s3.aws.upbound.io/v1beta1
kind: Bucket
spec:
forProvider:
region: us-east-2
patches:
- type: FromCompositeFieldPath
fromFieldPath: "location"
fromFieldPath: "spec.location"
toFieldPath: "spec.forProvider.region"
transforms:
- type: map
Expand Down

0 comments on commit a7c2fe8

Please sign in to comment.