crossplane-contrib / crossplane-contrib/function-go-templating

getExtraResourcesFromContext missing in v0.11.3 but referenced in documentation

Open
#535 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
100
Forks
65
Avg merge
2d 6h
Merged PRs (30d)
9

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?

```bash
$ git clone https://github.com/crossplane-contrib/function-go-templating.git
$ cd function-go-templating/example/functions/getExtraResourcesFromContext
$ cat functions.yaml
```

```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
```

```bash
$ 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 defined
```

### What environment did it happen in?
local environment:

macos: 26.2 (25C56)

Crossplain CLI version

```bash
$ crossplane version

Client Version: v2.1.3
Server Version: v2.1.1
```

Docker version

```bash
$ 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

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.