Update kube-rs from 0.65.0 to 0.66.0 #295
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update kube-rs dependency
Changelog 0.66.0 / 2022-01-15
Tons of ergonomics improvements, and 3 new contributors.
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 viakube
then you must now add theschema
feature tokube-core
New
StreamBackoff
mechanism inkube-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 newdefault_backoff
follows existingclient-go
conventions of being kind to the apiserver.Initially, this is default-enabled in
Controller
watches (configurable viaController::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 newkube_core::Version
Version::priority
implementing kubernetes version priorityVersion::generation
implementing a more traditional; generational sort (highest version)Changes
Merged PRs from github release.
Added
DeleteParams
constructors for easily settingPropagationPolicy
by @kate-goldenring in AddDeleteParams
constructors for easily settingPropagationPolicy
kube-rs/kube#757Changed
identity_pem
field fromConfig
by @kazk in Remove crate privateidentity_pem
field fromConfig
kube-rs/kube#771Signed-off-by: Sönke Liebau [email protected]
Description
Review Checklist