From a3d01732c3900128c196cac0570715b0727a49f8 Mon Sep 17 00:00:00 2001 From: Philippe Scorsolini Date: Tue, 15 Oct 2024 11:07:10 +0100 Subject: [PATCH] hide old composition to avoid confusion --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2fc26ba..36a372a 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,13 @@ function and how it fits with other functions: ### Migration Example -Given an example `Resource` Composition: +Given an example `Resource`-mode Composition: + +> [!WARNING] +> The example below is using the old native Composition Environment, which was dropped in Crossplane 1.18. + +
Old Resource-mode Composition +

```yaml apiVersion: apiextensions.crossplane.io/v1 @@ -116,6 +122,9 @@ spec: ``` +

+
+ The above can be converted to use this function and [function-patch-and-transform] as follows: @@ -254,4 +263,4 @@ $ crossplane xpkg build -f package --embed-runtime-image=runtime [function-go-templating]: https://github.com/crossplane-contrib/function-go-templating [function-patch-and-transform]: https://github.com/crossplane-contrib/function-patch-and-transform [go]: https://go.dev -[upstream-docs-environment-configs]: https://docs.crossplane.io/latest/concepts/environment-configs/ \ No newline at end of file +[upstream-docs-environment-configs]: https://docs.crossplane.io/latest/concepts/environment-configs/