Skip to content

Commit

Permalink
Fix resource notation example in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-di authored Nov 10, 2023
1 parent 680f061 commit 8be1c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pipeline context using notation like:

* `{{ .observed.composite.resource.metadata.name }}`
* `{{ .desired.composite.resource.status.widgets }}`
* `{{ (index .desired.composed.resource "resource-name").spec.widgets }}`
* `{{ (index .desired.composed "resource-name").resource.spec.widgets }}`
* `{{ index .context "apiextensions.crossplane.io/environment" }}`

This function supports all of Go's [built-in template functions][builtin]. The
Expand Down Expand Up @@ -125,4 +125,4 @@ $ crossplane xpkg build -f package --embed-runtime-image=runtime
[sprig]: http://masterminds.github.io/sprig/
[go]: https://go.dev
[docker]: https://www.docker.com
[cli]: https://docs.crossplane.io/latest/cli
[cli]: https://docs.crossplane.io/latest/cli

0 comments on commit 8be1c96

Please sign in to comment.