diff --git a/examples/default/resources/Makefile b/examples/default/resources/Makefile index d4d1dc0..f5e6afd 100644 --- a/examples/default/resources/Makefile +++ b/examples/default/resources/Makefile @@ -1,2 +1,5 @@ run: crossplane render xr.yaml composition.yaml functions.yaml -r + +run-in-docker: + crossplane render xr.yaml composition.yaml functions.yaml -r diff --git a/examples/default/resources/functions-docker.yaml b/examples/default/resources/functions-docker.yaml new file mode 100644 index 0000000..fba129a --- /dev/null +++ b/examples/default/resources/functions-docker.yaml @@ -0,0 +1,6 @@ +apiVersion: pkg.crossplane.io/v1beta1 +kind: Function +metadata: + name: kcl-function +spec: + package: xpkg.upbound.io/crossplane-contrib/function-kcl:latest diff --git a/scripts/e2e.sh b/scripts/e2e.sh index 3f66575..6507a46 100755 --- a/scripts/e2e.sh +++ b/scripts/e2e.sh @@ -8,6 +8,12 @@ find examples -type f -name "Makefile" -exec sh -c ' make ' \; +find examples -type f -name "Makefile" -exec sh -c ' + dir="{}" + cd "$(dirname "$dir")" || exit + make run-in-docker +' \; + find examples_kcl -type f -name "Makefile" -exec sh -c ' dir="{}" cd "$(dirname "$dir")" || exit