0.66.0
News
Tons of small feature additions, and 3 new contributors in this milestone.
Highlighted first is the 3 most discussed changes:
Support for auto-generating schemas for enums in kube-derive
It is now possible to embed complex enums inside structs that use #[derive(CustomResource)]
.
This has been a highly requested feature since the inception of auto-generated schemas. It does not work for all cases, and has certain ergonomics caveats, but represents a huge step forwards.
Note that if you depend on kube-derive
directly rather than via kube
then you must now add the schema
feature to kube-core
New StreamBackoff
mechanism in kube-runtime
To avoid spamming the apiserver when on certain watch errors cases, it's now possible to stream wrap the watcher
to set backoffs. The new default_backoff
follows existing client-go
conventions of being kind to the apiserver.
Initially, this is default-enabled in Controller
watches (configurable via Controller::trigger_backoff
) and avoids spam errors when crds are not installed.
New version priority parser in kube-core
To aid users picking the most appropriate version of a kind
from api discovery or through a CRD, two new sort orders have been exposed on the new kube_core::Version
Version::priority
implementing kubernetes version priorityVersion::generation
implementing a more traditional; generational sort (highest version)
What's Changed
Added
- Add
DeleteParams
constructors for easily settingPropagationPolicy
by @kate-goldenring in #757 - Add Serialize to ObjecList and add field-selector and jsonpath example by @ChinYing-Li in #760
- Implement cordon/uncordon for Node by @ChinYing-Li in #762
- Export Version priority parser with Ord impls in kube_core by @clux in #764
- Add Api fns for arbitrary subresources and approval subresource for CertificateSigningRequest by @ChinYing-Li in #773
- Support complex enums in CRDs by @teozkr in #779
Changed
- Add backoff handling for watcher and Controller by @clux in #703
- Remove crate private
identity_pem
field fromConfig
by @kazk in #771 - Use SecretString in AuthInfo to avoid credential leaking by @ChinYing-Li in #766
New Contributors
- @kate-goldenring made their first contribution in #757
- @ChinYing-Li made their first contribution in #760
- @LyleScott made their first contribution in #775
Full Changelog: 0.65.0...0.66.0