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) andfn.ResourceListProcessor(generators, complex functions). - Effective KRM functions — patterns for selecting, reading, and updating resources.
- 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 November 13, 2026: docs: add effective KRM functions guide (721d896c)