You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/stackable-operator/CHANGELOG.md
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,20 @@ All notable changes to this project will be documented in this file.
12
12
13
13
- BREAKING: The `CustomResourceExt` trait is now re-exported from the `stackable-shared` crate. The
14
14
trait functions use the same parameters but return a different error type ([#883]).
15
+
- BREAKING: `KeyValuePairs<V>` (and `Annotations`/`Labels`) is now an alias for `BTreeMap<Key, V>` ([#889]).
16
+
- Generally, this means that the API now behaves like a map rather than a set. For example, duplicate keys are no longer allowed (as was already documented before).
17
+
- Some `KeyValuePairs` methods have been renamed for certain use cases:
18
+
-`KeyValuePairs::insert(&mut self, kvp)`: use `::extend(&mut self, [kvp])` instead.
19
+
-`KeyValuePairs::try_from`: you may need to use `::try_from_iter` instead.
20
+
-`KeyValuePairs::contains_key`: unvalidated keys will need to use `::contains_str_key` instead.
21
+
-`Into<BTreeMap<String, String>>`: use `::to_unvalidated` instead.
22
+
- Well-known annotations have been moved from `kvp::Annotation` to `kvp::annotation::well_known`.
23
+
- Well-known labels have been moved from `kvp::Label` to `kvp::label::well_known`.
24
+
- Well-known label sets have been moved from `kvp::Labels` to `kvp::label::sets`.
25
+
26
+
### Fixed
27
+
28
+
-`KeyValuePairs` will now consistently use the last-written value for a given key ([#889]).
15
29
16
30
### Removed
17
31
@@ -20,6 +34,7 @@ All notable changes to this project will be documented in this file.
0 commit comments