Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs and finalize for 0.72.0 #909

Merged
merged 2 commits into from May 13, 2022
Merged

Update docs and finalize for 0.72.0 #909

merged 2 commits into from May 13, 2022

Conversation

clux
Copy link
Member

@clux clux commented May 12, 2022

Plan on releasing 0.72.0 tomorrow (with or without the outstanding docs thing).

Stuff to put in highlights:
(NB: TODOs blocked by release on docs.rs)

Ergonomics improvements

A new runtime::WatchSteamExt (#899 + #906) allows for simpler setups for streams from watcher or reflector.

- let stream = utils::try_flatten_applied(StreamBackoff::new(watcher(api, lp), b));
+ let stream = watcher(api, lp).backoff(b).applied_objects();

The util::try_flatten_* helpers have been marked as deprecated since they are not used in the new pipeline.

A new reflector:store() fn allows simpler reflector setups #907:

- let store = reflector::store::Writer::<Node>::default();
- let reader = store.as_reader();
+ let (reader, writer) = reflector::store();

Additional conveniences getters/settes to ResourceExt for manged_fields and creation_timestamp #888 + #898, plus a GroupVersion::with_kind path to a GVK, and a TryFrom<TypeMeta> for GroupVersionKind in #896.

CRD Version Selection

Managing multiple version in CustomResourceDefinitions can be pretty complicated, but we now have helpers and docs on how to tackle it.

A new function kube::core::crd::merge_crds (TODO: docs.rs link) have been added (in #889) to help push crd schemas generated by kube-derived crds with different #[kube(version)] properties. TODO: link to kube-derive segment.

A new example showcases how one can manage two or more versions of a crd and what the expected truncation outcomes are when moving between versions.

Examples

Examples now have moved to tracing for its logging, respects RUST_LOG, and namespace selection via the kubeconfig context. There is also a larger kubectl example showcasing kubectl apply -f yaml https://github.com/kube-rs/kube-rs/blob/7715cabd4d1976493e6b8949471f283df927a79e/examples/kubectl.rs#L149-L170 as well as kubectl {edit,delete,get,watch} via #885 + #897.

Signed-off-by: clux <sszynrae@gmail.com>
@clux clux added the changelog-exclude changelog excluded prs label May 12, 2022
@clux clux added this to the 0.72.0 milestone May 12, 2022
README.md Outdated Show resolved Hide resolved
Co-authored-by: kazk <kazk.dev@gmail.com>
@codecov-commenter

This comment was marked as off-topic.

@clux
Copy link
Member Author

clux commented May 13, 2022

Will merge and take the highlights from here as the release in a few hours.

@clux clux merged commit cea5260 into master May 13, 2022
@clux clux deleted the 72docs branch May 13, 2022 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-exclude changelog excluded prs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants