kpt API v1.1.0
Minor release. Additive and backward-compatible — no breaking changes to the Go API; import paths are unchanged.
Features
- KubeObject moved into the
apimodule (#4767) — thekubeobjectpackage (withnode/andkptfile/subpackages) is now part ofgithub.com/kptdev/kpt/api. - Server-side apply configurations (#4701) — generated apply-configuration types for the
kptfileandfnresultAPIs undergenerated/applyconfigurations. Selector.ResourceFileRegexp(#4743) — select resources by matching their file path (relative to package root) against a regular expression.Upstream.PreserveExplicitNull(#4745) — keep explicitly-nulled fields duringresource-mergeinstead of deleting them (resource-merge strategy only).ResultItemnow implementserror— added anError()method.
Behavioral changes
- Stricter Kptfile validation (#4742, #4750) — comprehensive field validation now rejects some Kptfiles that previously passed.
upstream.git.reponow also accepts scp-style and local values. Not a Go API break, but validation may fail on inputs that were accepted before.
What's Changed (kpt API)
- Add generated ApplyConfiguration types by @mozesl-nokia in #4701
- Feature: Implement comprehensive field validation for Kptfile (#4735) by @adi-coderr in #4742
- [API] Add flag to explicitly preserve
nullvalues in merge by @mozesl-nokia in #4745 - Accept scp-style and local upstream.git.repo values in Kptfile validation by @chiliec in #4750
- Add a resource file name filter to kpt selectors and improve test/docs for selectors by @liamfallon in #4743
- [API] Move KubeObject to
apimodule by @mozesl-nokia in #4767 - Fix json tag on ResourceFileRegexp by @efiacor in #4770
New Contributors
- @adi-coderr made their first contribution in #4742
- @chiliec made their first contribution in #4750
Full Changelog: api/v1.0.0...api/v1.1.0