Skip to content

Releases: kube-rs/kube

1.1.0

26 May 18:57
1.1.0
1ba4b2a
Compare
Choose a tag to compare

What's Changed

Missing attribute bugfix + extra standard derives on core::conversion structs.

Added

Fixed

Full Changelog: 1.0.0...1.1.0

1.0.0

13 May 09:36
1.0.0
ed3d390
Compare
Choose a tag to compare

A Major Version

It's been a long time coming, but time has come to draw the line in the sand. No alphas, no betas. Hope it finds you all well. Thanks to everyone who has contributed over the years.

This is a somewhat symbolic gesture, because semver-breaking changes are still hard to avoid with a large set of sub-1.0 dependencies we need to bump, as well as managing the large api surface of Kubernetes.

Therefore, the plan is to align our breaking changes and major bumps with Kubernetes versions / k8s-openapi versions for now, and this should allow our other releases to stream in. See #1688 for more information.

Kubernetes v1_33 support via k8s-openapi 0.25

Please upgrade k8s-openapi along with kube to avoid conflicts.

New minimum versions: MSRV 1.82.0, MK8SV: 1.30*

KubeSchema

The CELSchema alternate derive for JsonSchema has been renamed to KubeSchema to indicate the increased functionality.

In addition to being able to inject CEL rules for validations, it can now also inject x-kubernetes properties such as merge-strategy via #1750, handle #[validate] attributes #1749, and pass validation rules as string literals #1754 :

#[derive(CustomResource, Serialize, Deserialize, Debug, PartialEq, Clone, KubeSchema)]
#[kube(...properties)
struct DocumentSpec {
    /// New merge strategy support
    #[x_kube(merge_strategy = ListMerge::Set)]
    x_kubernetes_set: Vec<String>,

    /// CEL Validation now lives on x_kube and supports literal Rules:
    #[x_kube(validation = "!has(self.variantOne) || self.variantOne.int > 22")]
    complex_enum: ComplexEnum,
}

See kube.rs docs on validation for more info. Huge thanks to @Danil-Grigorev.

What's Changed

Added

Changed

Removed

  • Remove deprecated watcher::Event into_iter_* methods by @clux in #1738

Fixed

New Contributors

Full Changelog: 0.99.0...1.0.0

0.99.0

12 Mar 16:07
0.99.0
c9b7b70
Compare
Choose a tag to compare

Highlights

Dependency Cleanups

Features

What's Changed

Added

Changed

  • Replace backoff with backon by @flavio in #1653
  • Bump rand to 0.9 by @clux in #1686
  • Remove rand dependency in favor of tungstenite fn by @clux in #1691
  • Exec can return stdout data even after stdin is closed. by @esw-amzn in #1693
  • Bump json-patch to 4 use bundled jsonptr to 0.7 by @clux in #1718
  • Allow removing hyper-rustls/ring feature by @eliad-wiz in #1717

Fixed

  • kube-runtime: fix exponential backoff max times by @eliad-wiz in #1713
  • CustomResource derive; allow status attribute to take a path by @clux in #1704

New Contributors

Full Changelog: 0.98.0...0.99.0

0.98.0

23 Dec 12:56
0.98.0
3f122f9
Compare
Choose a tag to compare

Highlights

What's Changed

Added

  • Add storage and served argument to derive macro by @Techassi in #1644
  • Implement derive(CELSchema) macro for generating cel validation on CRDs by @Danil-Grigorev in #1649

Changed

  • Add series implementation for runtime event recorder by @pando85 in #1655
  • Bump k8s-openapi for Kubernetes v1_32 support and MSRV by @clux in #1671
  • Update tokio-tungstenite requirement from 0.24.0 to 0.25.0 by @dependabot in #1666

Fixed

  • Add support for UTF-16 encoded kubeconfig files by @goenning in #1654

New Contributors

Full Changelog: 0.97.0...0.98.0

0.97.0

20 Nov 12:17
0.97.0
69d7995
Compare
Choose a tag to compare

Highlights

  • CustomResource derive added features for crd yaml output:
  • Configuration edge cases:
    • Avoid double installations of aws-lc-rs (rustls crypto) provider #1617
    • Kubeconfig fix for null user; #1608
    • Default runtime watcher backoff alignment with client-go #1603
  • Feature use:
    • Client proxy feature-set misuse prevention #1626
    • Allow disabling gzip via Config #1627
  • Depedency minors: thiserror, hashbrown, jsonptr, json-patch. Killed lazy_static / once_cell

What's Changed

Added

Changed

Fixed

New Contributors

Full Changelog: 0.96.0...0.97.0

0.96.0

09 Oct 18:04
0.96.0
4d13cbd
Compare
Choose a tag to compare

Highlights

  • Features: webpki-roots added #1323, and predicates no longer require unstable-runtime #1578
  • Local auth: improve leniency/kubectl-alignment #1595, remove http proxy vars #1520
  • Dependencies: upgrades to tower and secrecy, and derivative swapped for educe

What's Changed

Added

  • rustls: optionally use WebPKI roots to avoid panicking on Android & iOS by @ewilken in #1323
  • Stabilise runtime predicates by @clux in #1578
  • Add ObjectRef::from as alias for ::from_obj by @nightkr in #1598

Changed

Removed

  • remove using HTTP PROXY from environment variable by @aviramha in #1587

Fixed

  • replace derivative dependency with educe by @rorosen in #1585
  • change auth behavior to match upstream on unknown/empty user - use null auth by @aviramha in #1595

New Contributors

Full Changelog: 0.95.0...0.96.0

0.95.0

16 Sep 11:58
0.95.0
6216baa
Compare
Choose a tag to compare

Kubernetes v1_31 support via k8s-openapi 0.23

Please upgrade k8s-openapi along with kube to avoid conflicts.

New minimum versions: MSRV 1.77.2, MK8SV: 1.26

What's Changed

Changed

  • Update tokio-tungstenite requirement from 0.23.0 to 0.24.0 by @dependabot in #1579
  • Bump k8s-openapi to 0.23 for Kubernetes 1.31 support by @clux in #1581

Full Changelog: 0.94.2...0.95.0

0.94.2

13 Sep 13:21
0.94.2
76944b4
Compare
Choose a tag to compare

What's Changed

Fixes a runtime regression in watch_object.

Fixed

New Contributors

Full Changelog: 0.94.1...0.94.2

0.94.1

09 Sep 19:28
0.94.1
0dcaa4a
Compare
Choose a tag to compare

What's Changed

Convenience release. Adjusted a version bound to avoid possibility of running into version compatibility errors with hyper-rustls.

Fixed

New Contributors

Full Changelog: 0.94.0...0.94.1

0.94.0

09 Sep 10:38
0.94.0
b6e7db6
Compare
Choose a tag to compare

Highlights

Support for rustls's aws-lc-rs is available under a new kube/aws-lc-rs feature. Via #1568 for #1562

Furthermore, there are features to help avoid dynamic typing:

  1. Added a DeserializeGuard safety wrapper to lift deserialisation errors (to e.g. not break watchers). See the errorbound example and core module module. Wrapped type be used with e.g. Api::<DeserializeGuard<CaConfigMap>>. Via #1556
  2. A derive macro for Resource; #[derive(Resource)] allows inheriting existing k8s-openapi resource implementations to avoid stepping down to the dynamic api. See the cert check example for usage. Via #1565

What's Changed

Added

Changed

  • Make implicitly dependent feature explicitly depend on each other by @clux in #1551

New Contributors

Full Changelog: 0.93.1...0.94.0