Help us shape the future of Go! Take the 2026 Go Developer Survey

crossplane-function-grafana-data

command module
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

README

crossplane-function-grafana-data

CI

Crossplane providers generated by Upjet do not support the TF Data Source blocks, however some Grafana resources rely on inputs from these data sources. While it is possible to work around this by providing data like User IDs directly, it is rather inconvenient.

This Crossplane function can look up Grafana data and replace that on a resource. For example it can look up a user by its email and replace the data with the ID.

Development hints

# 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
v1beta1
Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=grafana.fn.crossplane.io +versionName=v1beta1
Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=grafana.fn.crossplane.io +versionName=v1beta1
pkg
clients
Package clients provides a way to create clients from the Grafana Crossplane providerConfig using the Grafana Terraform provider
Package clients provides a way to create clients from the Grafana Crossplane providerConfig using the Grafana Terraform provider

Jump to

Keyboard shortcuts

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