KRM Function Developer Guide

Write your own KRM functions with the Go SDK.

This guide walks through writing KRM functions with the Go SDK. Start with the tutorial, then dig into the topic guides as needed.

  • Tutorial — build a working function end to end, with embedded documentation, golden tests, and support for --help, --doc, and standalone file mode.
  • Interfaces — choose between fn.Runner (transformers, validators) and fn.ResourceListProcessor (generators, complex functions).
  • Testing — golden test patterns and unit testing in depth.
  • Containerizing — package your function as a container image.

For a complete working example, see go/get-started/.

Last modified September 2, 2026: docs: add KRM function developer guide (ca9cd643)