Skip to content

Commit b215e8e

Browse files
committed
Changelog
1 parent f7ac175 commit b215e8e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

crates/stackable-operator/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ All notable changes to this project will be documented in this file.
1212

1313
- BREAKING: The `CustomResourceExt` trait is now re-exported from the `stackable-shared` crate. The
1414
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]).
1529

1630
### Removed
1731

@@ -20,6 +34,7 @@ All notable changes to this project will be documented in this file.
2034
use it as a `String`.
2135

2236
[#883]: https://github.com/stackabletech/operator-rs/pull/883
37+
[#889]: https://github.com/stackabletech/operator-rs/pull/889
2338

2439
## [0.78.0] - 2024-09-30
2540

0 commit comments

Comments
 (0)