function-claude-status-transformer

command module
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

README

function-claude-status-transformer

CI Slack GitHub release

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.

Model Support:

Provider Models Notes
Anthropic claude-sonnet-4-20250514 This will be configurable in the future.

Using this function

  1. Within your Upbound project, run
up dep add xpkg.upbound.io/upbound/function-claude-status-transformer:v0.0.0-20250703165412-f44b846b3a
  1. 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
  ...
  1. 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}"

Building locally

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

Documentation

Overview

Package main implements a Composition Function.

Directories

Path Synopsis
input
v1alpha1
Package v1alpha1 contains the FunctionConfig for the Function.
Package v1alpha1 contains the FunctionConfig for the Function.
v1beta1
Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=function-claude-status-transformer.fn.crossplane.io +versionName=v1beta1
Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=function-claude-status-transformer.fn.crossplane.io +versionName=v1beta1
internal
bootcheck
Package bootcheck provides helpers for checks at boot time.
Package bootcheck provides helpers for checks at boot time.
credentials/anthropic
Package anthropic provides credential helpers for working with Anthropic APIs.
Package anthropic provides credential helpers for working with Anthropic APIs.
credentials/aws
Package aws provides credential helpers for working with AWS Bedrock APIs.
Package aws provides credential helpers for working with AWS Bedrock APIs.
credentials/aws/clients
Package clients provides AWS Config helpers for deriving AWS credentials from the environment.
Package clients provides AWS Config helpers for deriving AWS credentials from the environment.
credentials/fn
Package fn provides helpers for working with function properties.
Package fn provides helpers for working with function properties.
version
Package version contains the version of provider-aws repo
Package version contains the version of provider-aws repo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL