generated from crossplane/function-template-go
-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi 👋
What happened?
I noticed a possible inconsistency between the documentation and the actual implementation of function-go-templating.
According to the documentation, the function getExtraResourcesFromContext should be available and usable. However, in the latest release v0.11.3, I cannot find this function, and it does not seem to be available at runtime.
Expected behavior
The function getExtraResourcesFromContext is available in v0.11.3 as described in the documentation.
Actual behavior
The function appears to be missing in v0.11.3, despite being documented.
What I checked
- Version:
crossplane-contrib/function-go-templating v0.11.3 - Searched the repository for
getExtraResourcesFromContext - Try to run example from
example/functions/getExtraResourcesFromContext
How can we reproduce it?
$ git clone https://github.com/crossplane-contrib/function-go-templating.git
$ cd function-go-templating/example/functions/getExtraResourcesFromContext
$ cat functions.yaml apiVersion: pkg.crossplane.io/v1beta1
kind: Function
metadata:
name: function-go-templating
spec:
package: xpkg.upbound.io/crossplane-contrib/function-go-templating:v0.11.3$ crossplane render xr.yaml composition.yaml functions.yaml -e extraResources.yaml
crossplane: error: cannot render composite resource: pipeline step "render-templates" returned a fatal result: invalid function input: cannot parse the provided templates: template: manifests:1: function "getExtraResourcesFromContext" not definedWhat environment did it happen in?
local environment:
macos: 26.2 (25C56)
Crossplain CLI version
$ crossplane version
Client Version: v2.1.3
Server Version: v2.1.1Docker version
$ docker version
Client:
Version: 28.5.2
API version: 1.51
Go version: go1.25.3
Git commit: ecc6942
Built: Wed Nov 5 14:42:30 2025
OS/Arch: darwin/arm64
Context: orbstack
Server: Docker Engine - Community
Engine:
Version: 28.5.2
API version: 1.51 (minimum version 1.24)
Go version: go1.24.9
Git commit: 89c5e8f
Built: Wed Nov 5 14:43:35 2025
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: v2.2.0
GitCommit: 1c4457e00facac03ce1d75f7b6777a7a851e5c41
runc:
Version: 1.3.3
GitCommit: d842d7719497cc3b774fd71620278ac9e17710e0
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working