This release is for Go SDK github.com/GoogleContainerTools/kpt-functions-sdk/go/[email protected]
This version kick-starts the Go SDK to write your own KRM functions in as less as ~10 lines of code.
- The SDK converts STDIN to a
ResourceListobject and provides well handling aroundResourceListobject read/write. The ResourceList specification is defined here - The SDK defines
KubeObjectwhich is the smallest unit to represent a KRM resource.KubeObjectmethods can be called similar to unstructured.Unstructured. For example, you can get/set the MetaType and NameType fields ofKubeObejctviaGetNameSetNamespace,GetAnnotation,GetApiVersion"IsGVK", or get/set a specific field path viaNestedStringOrDieSetNestedStringMap, etc