Function-claude-status-transformer is a Crossplane Intelligent Function, specifically designed to help with identifying issues with your Composed Resources.
Use this function in any Crossplane Composition function pipline where you would like to have information communicated to end users of your API about issues with the Compositions.
Provider | Models | Notes |
---|---|---|
Anthropic | claude-sonnet-4-20250514 | This will be configurable in the future. |
- Within your Upbound project, run
up dep add xpkg.upbound.io/upbound/function-claude-status-transformer:v0.0.0-20250703165412-f44b846b3a
- Within your Composition add a pipeline step that includes the function:
apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
name: xnetworks.example.upbound.io
spec:
compositeTypeRef:
apiVersion: example.upbound.io/v1alpha1
kind: XNetwork
mode: Pipeline
pipeline:
...
- functionRef:
name: upbound-function-claude-status-transformer
input:
apiVersion: function-claude-status-transformer.fn.crossplane.io/v1beta1
kind: StatusTransformation
additionalContext: ""
step: upbound-function-claude-status-transformer
credentials:
- name: claude
source: Secret
secretRef:
namespace: crossplane-system
name: api-key-anthropic
...
- Make sure to include a secret for accessing the Claude API, e.g.
kubectl -n crossplane-system create secret generic api-key-anthropic --from-literal=ANTHROPIC_API_KEY="${ANTHROPIC_API_KEY}"
This template uses Go, Docker, and the Crossplane CLI to build functions.
# Run code generation - see input/generate.go
$ go generate ./...
# Run tests - see fn_test.go
$ go test ./...
# Build the function's runtime image - see Dockerfile
$ docker build . --tag=runtime
# Build a function package - see package/crossplane.yaml
$ crossplane xpkg build -f package --embed-runtime-image=runtime