From 8fad14e35bd213903437c2912da7ce28bdc24e20 Mon Sep 17 00:00:00 2001 From: Jan Dittrich Date: Fri, 10 Nov 2023 15:07:22 +0100 Subject: [PATCH] Fix resource notation example in Readme Signed-off-by: Jan Dittrich --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1ab5db5..7faca12 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 \ No newline at end of file +[cli]: https://docs.crossplane.io/latest/cli