Skip to content

Commit e9e182e

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/conversion-webhook
2 parents 8b83131 + 958f62f commit e9e182e

File tree

147 files changed

+4871
-5218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+4871
-5218
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
CARGO_TERM_COLOR: always
1818
CARGO_INCREMENTAL: '0'
1919
CARGO_PROFILE_DEV_DEBUG: '0'
20-
RUST_TOOLCHAIN_VERSION: "1.85.0"
20+
RUST_TOOLCHAIN_VERSION: "1.87.0"
2121
RUSTFLAGS: "-D warnings"
2222
RUSTDOCFLAGS: "-D warnings"
2323
RUST_LOG: "info"
@@ -38,10 +38,10 @@ jobs:
3838
- uses: dtolnay/rust-toolchain@master
3939
with:
4040
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
41-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
41+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
4242
with:
4343
key: udeps
44-
- run: cargo install --locked [email protected].55
44+
- run: cargo install --locked [email protected].57
4545
- run: cargo udeps --all-targets --all-features
4646

4747
run_cargodeny:
@@ -60,7 +60,7 @@ jobs:
6060
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6161
with:
6262
persist-credentials: false
63-
- uses: EmbarkStudios/cargo-deny-action@34899fc7ba81ca6268d5947a7a16b4649013fea1 # v2.0.11
63+
- uses: EmbarkStudios/cargo-deny-action@30f817c6f72275c6d54dc744fbca09ebc958599f # v2.0.12
6464
with:
6565
command: check ${{ matrix.checks }}
6666

@@ -75,7 +75,7 @@ jobs:
7575
with:
7676
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
7777
components: rustfmt
78-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
78+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
7979
with:
8080
key: doc
8181
- run: cargo doc --document-private-items
@@ -96,7 +96,7 @@ jobs:
9696
# for our cases.
9797
# See: https://github.com/dtolnay/trybuild/issues/236#issuecomment-1620950759
9898
components: rust-src
99-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
99+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
100100
with:
101101
key: test
102102
- run: cargo test --no-default-features --workspace

.github/workflows/pr_pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
persist-credentials: false
2121
fetch-depth: 0
22-
- uses: stackabletech/actions/run-pre-commit@4bfd3b65f22af597fe784599c077dc34bf5894a7 # v0.8.0
22+
- uses: stackabletech/actions/run-pre-commit@4483641a7e24057bd2ba51cb4c3f2f0010ad21b7 # v0.8.4
2323
with:
2424
rust: ${{ env.RUST_TOOLCHAIN_VERSION }}
2525
# rust-src is required for trybuild stderr output comparison to work

.github/workflows/publish-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- crates/**
1414

1515
env:
16-
RUST_TOOLCHAIN_VERSION: "1.85.0"
16+
RUST_TOOLCHAIN_VERSION: "1.87.0"
1717

1818
permissions: {}
1919

@@ -37,7 +37,7 @@ jobs:
3737
run: echo '<meta http-equiv="refresh" content="0;url=stackable_operator/index.html">' > target/doc/index.html
3838

3939
- name: Upload Documentation Artifacts
40-
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa #v3.0.1
40+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
4141
with:
4242
path: target/doc
4343

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"rust-analyzer.rustfmt.overrideCommand": [
55
"rustfmt",
66
"+nightly-2025-05-26",
7+
"--edition",
8+
"2024",
79
"--"
810
]
911
}

Cargo.lock

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

crates/stackable-certs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
## [0.4.0] - 2025-07-10
8+
79
### Added
810

911
- Add the function `CertificateAuthority::ca_cert` to easily get the CA `Certificate` ([#1057]).

crates/stackable-certs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "stackable-certs"
3-
version = "0.3.1"
3+
version = "0.4.0"
44
authors.workspace = true
55
license.workspace = true
66
edition.workspace = true

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ where
128128
{
129129
#[snafu(display("failed to retrieve secret \"{secret_ref}\""))]
130130
GetSecret {
131-
source: kube::Error,
131+
#[snafu(source(from(kube::Error, Box::new)))]
132+
source: Box<kube::Error>,
132133
secret_ref: SecretReference,
133134
},
134135

@@ -146,15 +147,19 @@ where
146147

147148
#[snafu(display("failed to read PEM-encoded certificate chain from secret {secret:?}"))]
148149
ReadChain {
149-
source: x509_cert::der::Error,
150+
#[snafu(source(from(x509_cert::der::Error, Box::new)))]
151+
source: Box<x509_cert::der::Error>,
150152
secret: ObjectRef<Secret>,
151153
},
152154

153155
#[snafu(display("failed to parse UTF-8 encoded byte string"))]
154156
DecodeUtf8String { source: std::str::Utf8Error },
155157

156158
#[snafu(display("failed to deserialize private key from PEM"))]
157-
DeserializeKeyFromPem { source: E },
159+
DeserializeKeyFromPem {
160+
#[snafu(source(from(E, Box::new)))]
161+
source: Box<E>,
162+
},
158163
}
159164

160165
/// A certificate authority (CA) which is used to generate and sign

crates/stackable-operator/CHANGELOG.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ All notable changes to this project will be documented in this file.
66

77
### Added
88

9+
- BREAKING: Add two new required CLI arguments: `--operator-namespace` and `-operator-service-name`.
10+
These two values are used to construct the service name in the CRD conversion webhook ([#1066]).
11+
12+
### Changed
13+
14+
- BREAKING: Rename two fields of the `ProductOperatorRun` struct for consistency and clarity ([#1066]):
15+
- `telemetry_arguments` -> `telemetry`
16+
- `cluster_info_opts` -> `cluster_info`
17+
18+
## [0.94.0] - 2025-07-10
19+
20+
### Added
21+
922
- The default Kubernetes cluster domain name is now fetched from the kubelet API unless explicitly configured ([#1068], [#1071])
1023
This requires operators to have the RBAC permission to `get` `nodes/proxy` in the apiGroup "", an example RBAC rule could look like:
1124

@@ -31,15 +44,12 @@ All notable changes to this project will be documented in this file.
3144
fieldPath: spec.nodeName
3245
```
3346

47+
- Add associated functions on `RoleGroupRef` to return the rolegroup headless and metrics service name ([#1069]).
48+
3449
### Changed
3550

3651
- Update `kube` to `1.1.0` ([#1049]).
3752
- BREAKING: Return type for `ListenerOperatorVolumeSourceBuilder::new()` is no longer a `Result` ([#1058]).
38-
- BREAKING: Require two new CLI arguments: `--operator-namespace` and `-operator-service-name`.
39-
These are required, so that the operator knows what Service it needs to enter as CRD conversion webhook ([#1066]).
40-
- BREAKING: The `ProductOperatorRun` used for CLI arguments has some field renamed for consistency ([#1066]):
41-
- `telemetry_arguments` -> `telemetry`
42-
- `cluster_info_opts` -> `cluster_info`
4353

4454
### Fixed
4555

@@ -57,6 +67,7 @@ All notable changes to this project will be documented in this file.
5767
[#1064]: https://github.com/stackabletech/operator-rs/pull/1064
5868
[#1066]: https://github.com/stackabletech/operator-rs/pull/1066
5969
[#1068]: https://github.com/stackabletech/operator-rs/pull/1068
70+
[#1069]: https://github.com/stackabletech/operator-rs/pull/1069
6071
[#1071]: https://github.com/stackabletech/operator-rs/pull/1071
6172

6273
## [0.93.2] - 2025-05-26

0 commit comments

Comments
 (0)