Replace function-template-go with your function in go.mod,
package/crossplane.yaml, and any Go imports. (You can also do this
automatically by running the ./init.sh <function-name> script.)
Update input/v1beta1/ to reflect your desired input (and run go generate)
Add your logic to RunFunction in fn.go
Add tests for your logic in fn_test.go
Update this file, README.md, to be about your function!
# 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
Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=github-app-get-token.fn.crossplane.giantswarm.io +versionName=v1beta1
Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=github-app-get-token.fn.crossplane.giantswarm.io +versionName=v1beta1
Click to show internal directories.
Click to hide internal directories.
go.dev uses cookies from Google to deliver and enhance the quality of its services and to
analyze traffic. Learn more.