Skip to content

Commit

Permalink
hide old composition to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
phisco authored Oct 15, 2024
1 parent 2d58164 commit a3d0173
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<details><summary>Old Resource-mode Composition</summary>
<p>

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

```

</p>
</details>

The above can be converted to use this function and
[function-patch-and-transform] as follows:

Expand Down Expand Up @@ -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/
[upstream-docs-environment-configs]: https://docs.crossplane.io/latest/concepts/environment-configs/

0 comments on commit a3d0173

Please sign in to comment.