The following resources are composed to implement the referenced Composite Resource Definition (XRD).
No resources found.
kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
name: xcontents.example.upbound.io
creationTimestamp: null
labels:
crossplane.io/provider: aws
spec:
compositeTypeRef:
apiVersion: example.upbound.io/v1alpha1
kind: XContent
patchSets:
- name: providerConfigRef
patches:
- type: FromCompositeFieldPath
fromFieldPath: spec.providerConfigRef.name
toFieldPath: spec.providerConfigRef.name
- name: region
patches:
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.region
toFieldPath: spec.forProvider.region
- name: deletionPolicy
patches:
- type: FromCompositeFieldPath
fromFieldPath: spec.deletionPolicy
toFieldPath: spec.deletionPolicy
- name: userTags
patches:
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.tags
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
keepMapValues: false
appendSlice: true
resources:
- name: Object
base:
apiVersion: s3.aws.upbound.io/v1beta1
kind: BucketObject
metadata:
labels:
resource: BucketObject
spec:
forProvider:
contentType: text/html
patches:
- type: PatchSet
patchSetName: providerConfigRef
- type: PatchSet
patchSetName: region
- type: PatchSet
patchSetName: deletionPolicy
- type: PatchSet
patchSetName: userTags
- fromFieldPath: spec.parameters.bucket.name
toFieldPath: spec.forProvider.bucketRef.name
- fromFieldPath: spec.parameters.content
toFieldPath: spec.forProvider.content
- type: CombineFromComposite
combine:
variables:
- fromFieldPath: spec.parameters.bucket.path
strategy: string
string:
fmt: "%s/index.html"
toFieldPath: spec.forProvider.key