pipeline :
- functionRef :
name : crossplane-contrib-function-kcl
input :
apiVersion : template.fn.crossplane.io/v1beta1
kind : KCLInput
spec :
source : |
bucket = {
apiVersion = "s3.aws.upbound.io/v1beta1"
kind = "Bucket"
metadata.annotations = {
"krm.kcl.dev/composition-resource-name" = "bucket"
}
items = [
bucket
]
step : crossplane-contrib-function-kcl
pipeline :
- functionRef :
name : crossplane-contrib-function-kcl
input :
apiVersion : template.fn.crossplane.io/v1beta1
kind : KCLInput
spec :
source : ./main.kcl
step : crossplane-contrib-function-kcl
pipeline :
- functionRef :
name : crossplane-contrib-function-go-templating
input :
apiVersion : gotemplating.fn.crossplane.io/v1beta1
kind : GoTemplate
source : Inline
inline :
template : |
---
apiVersion: s3.aws.upbound.io/v1beta1
kind: Bucket
metadata:
annotations:
gotemplating.fn.crossplane.io/composition-resource-name: bucket
step : crossplane-contrib-function-go-templating
pipeline :
- functionRef :
name : crossplane-contrib-function-go-templating
input :
apiVersion : gotemplating.fn.crossplane.io/v1beta1
kind : GoTemplate
source : FileSystem
fileSystem :
dirPath : /templates
step : crossplane-contrib-function-go-templating
function-patch-and-transform
pipeline :
- functionRef :
name : crossplane-contrib-function-patch-and-transform
input :
apiVersion : pt.fn.crossplane.io/v1beta1
kind : Resources
resources :
- name : bucket
base :
apiVersion : s3.aws.upbound.io/v1beta1
kind : Bucket
step : crossplane-contrib-function-patch-and-transform