upbound/platform-ref-s3-website@v0.1.0
xcontents.example.upbound.io

xcontents.example.upbound.io

xcontents.example.upbound.io
upbound/platform-ref-s3-website@v0.1.0xcontents.example.upbound.io
Type

Composition

Referenced XRD

XContent

Source Codegithub.com/upbound/platform-ref-s3-website
Resources (1)

The following resources are composed to implement the referenced Composite Resource Definition (XRD).

Kind
Group
Version

No resources found.

YAML
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
Discover the building blocks for your internal cloud platform.
© 2024 Upbound, Inc.
Solutions