Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion crates/stackable-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Fixed

- [v2] Don't require the `attributed_string_type` macro caller to have `std::str::FromStr` in scope ([#1244]).

[#1244]: https://github.com/stackabletech/operator-rs/pull/1244

## [0.113.2] - 2026-07-07

### Added

- Add `raw_object_schema` to v2 `JsonConfigOverrides` ([#1242]).
- [v2] Add `raw_object_schema` to `JsonConfigOverrides` ([#1242]).

[#1242]: https://github.com/stackabletech/operator-rs/pull/1242

Expand Down
5 changes: 1 addition & 4 deletions crates/stackable-operator/src/v2/builder/pod/container.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use std::{
collections::{BTreeMap, btree_map},
str::FromStr,
};
use std::collections::{BTreeMap, btree_map};

use snafu::Snafu;
use strum::{EnumDiscriminants, IntoStaticStr};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ macro_rules! attributed_string_type {
D: serde::Deserializer<'de>,
{
let string: String = serde::Deserialize::deserialize(deserializer)?;
$name::from_str(&string).map_err(|err| serde::de::Error::custom(&err))
<$name as std::str::FromStr>::from_str(&string).map_err(|err| serde::de::Error::custom(&err))
Comment thread
Techassi marked this conversation as resolved.
}
}

Expand Down
2 changes: 0 additions & 2 deletions crates/stackable-operator/src/v2/types/kubernetes.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//! Kubernetes (resource) names
use std::str::FromStr;

use crate::{
attributed_string_type,
validation::{RFC_1123_LABEL_MAX_LENGTH, RFC_1123_SUBDOMAIN_MAX_LENGTH},
Expand Down
2 changes: 0 additions & 2 deletions crates/stackable-operator/src/v2/types/operator.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Names for operators

use std::str::FromStr;

use crate::attributed_string_type;

attributed_string_type! {
Expand Down