kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
name: xclusters.platform.acme.co
creationTimestamp: null
spec:
compositeTypeRef:
apiVersion: platform.acme.co/v1alpha1
kind: XCluster
mode: Pipeline
pipeline:
- step: compose
functionRef:
name: crossplane-contrib-function-patch-and-transform
input:
apiVersion: pt.fn.crossplane.io/v1beta1
kind: Resources
resources:
- base:
apiVersion: nop.crossplane.io/v1alpha1
kind: NopResource
spec:
forProvider:
conditionAfter:
- conditionStatus: "True"
conditionType: Ready
time: 5s
fields: {}
name: nop
patches:
- fromFieldPath: spec.parameters.initialNodeCount
toFieldPath: spec.forProvider.fields.initialNodeCount
type: FromCompositeFieldPath
- fromFieldPath: spec.parameters.networkRef
toFieldPath: spec.forProvider.fields.networkRef
type: FromCompositeFieldPath
- fromFieldPath: spec.parameters.subnetworkRef
toFieldPath: spec.forProvider.fields.subnetworkRef
type: FromCompositeFieldPath
- fromFieldPath: spec.parameters.project
toFieldPath: spec.forProvider.fields.project
type: FromCompositeFieldPath
- fromFieldPath: spec.parameters.location
toFieldPath: spec.forProvider.fields.location
type: FromCompositeFieldPath
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.