Skip to content

Commit db324bf

Browse files
committed
chore: Merge branch 'main' into chore/add-crd-versioning
2 parents a1c5a52 + a6d8db5 commit db324bf

File tree

25 files changed

+347
-295
lines changed

25 files changed

+347
-295
lines changed

Cargo.lock

Lines changed: 260 additions & 250 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ insta = { version= "1.40", features = ["glob"] }
3030
hyper = { version = "1.4.1", features = ["full"] }
3131
hyper-util = "0.1.8"
3232
itertools = "0.14.0"
33-
json-patch = "3.0.1"
33+
json-patch = "4.0.0"
3434
k8s-openapi = { version = "0.24.0", default-features = false, features = ["schemars", "v1_32"] }
3535
# We use rustls instead of openssl for easier portability, e.g. so that we can build stackablectl without the need to vendor (build from source) openssl
36-
kube = { version = "0.98.0", default-features = false, features = ["client", "jsonpatch", "runtime", "derive", "rustls-tls"] }
36+
kube = { version = "0.99.0", default-features = false, features = ["client", "jsonpatch", "runtime", "derive", "rustls-tls"] }
3737
opentelemetry = "0.23.0"
3838
opentelemetry_sdk = { version = "0.23.0", features = ["rt-tokio"] }
3939
opentelemetry-appender-tracing = "0.4.0"

crates/stackable-certs/src/ca/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ where
380380
key_certificate: &str,
381381
key_private_key: &str,
382382
) -> Result<Self, SecretError<S::Error>> {
383-
if !secret.type_.as_ref().is_some_and(|s| s == TLS_SECRET_TYPE) {
383+
if secret.type_.as_ref().is_none_or(|s| s != TLS_SECRET_TYPE) {
384384
return InvalidSecretTypeSnafu.fail();
385385
}
386386

crates/stackable-operator/CHANGELOG.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
## [0.87.4] - 2025-03-17
8+
9+
## [0.87.3] - 2025-03-14
10+
11+
### Added
12+
13+
- Add a `Region::is_default_config` function to determine if a region sticks to the default config ([#983]).
14+
15+
[#983]: https://github.com/stackabletech/operator-rs/pull/983
16+
17+
## [0.87.2] - 2025-03-10
18+
19+
### Changed
20+
21+
- Make `region.name` field in in S3ConnectionSpec public ([#980]).
22+
23+
[#980]: https://github.com/stackabletech/operator-rs/pull/980
24+
25+
## [0.87.1] - 2025-03-10
26+
27+
### Changed
28+
29+
- Refactor `region` field in S3ConnectionSpec ([#976]).
30+
31+
[#976]: https://github.com/stackabletech/operator-rs/pull/976
32+
733
## [0.87.0] - 2025-02-28
834

935
### Changed
@@ -24,7 +50,7 @@ All notable changes to this project will be documented in this file.
2450

2551
### Added
2652

27-
- Add `region` field to S3ConnectionSpec ([#959]).
53+
- BREAKING: Add `region` field to S3ConnectionSpec (defaults to `us-east-1`) ([#959]).
2854

2955
[#959]: https://github.com/stackabletech/operator-rs/pull/959
3056

crates/stackable-operator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "stackable-operator"
33
description = "Stackable Operator Framework"
4-
version = "0.87.0"
4+
version = "0.87.4"
55
authors.workspace = true
66
license.workspace = true
77
edition.workspace = true

crates/stackable-operator/src/commons/rbac.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pub enum Error {
3030
/// Build RBAC objects for the product workloads.
3131
/// The `product_name` is meant to be the product name, for example: zookeeper, airflow, etc.
3232
/// and it is a assumed that a ClusterRole named `{product_name}-clusterrole` exists.
33-
3433
pub fn build_rbac_resources<T: Clone + Resource<DynamicType = ()>>(
3534
resource: &T,
3635
// 'product_name' is not used to build the names of the serviceAccount and roleBinding objects,

crates/stackable-operator/src/config/fragment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub struct Validator<'a> {
2626
parent: Option<&'a Validator<'a>>,
2727
}
2828

29-
impl<'a> Validator<'a> {
29+
impl Validator<'_> {
3030
/// Creates a `Validator` for a subfield of the current object
3131
pub fn field<'b>(&'b self, ident: &'b dyn Display) -> Validator<'b> {
3232
Validator {

crates/stackable-operator/src/config/merge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl Atomic for bool {}
146146
impl Atomic for String {}
147147
impl Atomic for Quantity {}
148148
impl Atomic for Duration {}
149-
impl<'a> Atomic for &'a str {}
149+
impl Atomic for &str {}
150150
impl Atomic for LabelSelector {}
151151
impl Atomic for PodAffinity {}
152152
impl Atomic for PodAntiAffinity {}

crates/stackable-operator/src/cpu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl<'de> Deserialize<'de> for CpuQuantity {
7070
{
7171
struct CpuQuantityVisitor;
7272

73-
impl<'de> Visitor<'de> for CpuQuantityVisitor {
73+
impl Visitor<'_> for CpuQuantityVisitor {
7474
type Value = CpuQuantity;
7575

7676
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {

crates/stackable-operator/src/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ impl<'de> Deserialize<'de> for MemoryQuantity {
347347
{
348348
struct MemoryQuantityVisitor;
349349

350-
impl<'de> Visitor<'de> for MemoryQuantityVisitor {
350+
impl Visitor<'_> for MemoryQuantityVisitor {
351351
type Value = MemoryQuantity;
352352

353353
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {

0 commit comments

Comments
 (0)