Skip to content

Commit

Permalink
Merge pull request #22 from jan-di/jan-di-patch-1
Browse files Browse the repository at this point in the history
Fix resource notation example in Readme
  • Loading branch information
ezgidemirel authored Nov 13, 2023
2 parents 0269607 + 8fad14e commit 6e96f14
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 6e96f14

Please sign in to comment.