Skip to content

Commit 51a310a

Browse files
committed
chore: Merge branch 'main' into fix/remove-stackable-webhook-dependency
2 parents fb96f13 + 1b610a8 commit 51a310a

File tree

198 files changed

+8827
-3317
lines changed

Some content is hidden

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

198 files changed

+8827
-3317
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[alias]
2+
xtask = "run --package xtask --"

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
crates/stackable-operator/crds/*.yaml linguist-generated
12
*.stderr linguist-generated
23
*.snap linguist-generated

.github/ISSUE_TEMPLATE/release-workspace-members.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Pre-Release Workspace Member Updates and Releases
33
about: This template can be used to track the updates and releases of all workspace members leading up to the next Stackable release
4-
title: "chore: Update and release workspace members"
4+
title: "chore: Update and release workspace members for Stackable Release YY.M.X"
55
labels: ['epic']
66
assignees: ''
77
---
@@ -11,7 +11,7 @@ assignees: ''
1111
This was created by an issue template: https://github.com/stackabletech/operator-rs/issues/new/choose.
1212
-->
1313

14-
## Update and Release Workspace Members for Stackable Release XX.(X)X
14+
Part of stackabletech/issues#xxx.
1515

1616
> [!NOTE]
1717
> During a Stackable release we update all dependencies in the `operator-rs`
@@ -21,15 +21,12 @@ assignees: ''
2121
2222
Replace the items in the task lists below with the applicable Pull Requests
2323

24-
```[tasklist]
25-
### Tasks
2624
- [ ] Update Rust version and workflow actions, see below for more details.
2725
- [ ] Update Rust dependencies, see below for more details.
2826
- [ ] Adjust and then verify crate versions using `.scripts/verify_crate_versions.sh`.
2927
- [ ] Push the release tags using `.scripts/tag_and_push_release.sh`.
30-
```
3128

32-
### Update Rust Version and Workflow Actions
29+
## Update Rust Version and Workflow Actions
3330

3431
> [!NOTE]
3532
> The PR is usually titled: `chore: Bump Rust version and workflow actions`
@@ -45,7 +42,7 @@ Replace the items in the task lists below with the applicable Pull Requests
4542
make sure that the `cargo-udeps` action is up-to-date, otherwise the CI might
4643
report errors.
4744

48-
### Update Rust Dependencies
45+
## Update Rust Dependencies
4946

5047
> [!NOTE]
5148
> This PR is usually titled: `chore: Bump Rust dependencies`
@@ -59,7 +56,7 @@ Replace the items in the task lists below with the applicable Pull Requests
5956
override the dependency.
6057
5. Add a changelog entry if required.
6158

62-
### Adjust and Verify Crate Versions
59+
## Adjust and Verify Crate Versions
6360

6461
> [!WARNING]
6562
> Currently, all workspace members use `0.X.Y` versions. This means we can

.github/pull_request_template.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@
77
- Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
88
- Please make sure all these things are done and tick the boxes
99

10-
```[tasklist]
11-
# Author
10+
### Author
11+
1212
- [ ] Changes are OpenShift compatible
1313
- [ ] CRD changes approved
14+
- [ ] CRD documentation for all fields, following the [style guide](https://docs.stackable.tech/home/nightly/contributor/docs/style-guide).
1415
- [ ] Integration tests passed (for non trivial changes)
15-
```
16+
- [ ] Changes need to be "offline" compatible
17+
18+
### Reviewer
1619

17-
```[tasklist]
18-
# Reviewer
1920
- [ ] Code contains useful comments
21+
- [ ] Code contains useful logging statements
2022
- [ ] (Integration-)Test cases added
21-
- [ ] Documentation added or updated
23+
- [ ] Documentation added or updated. Follows the [style guide](https://docs.stackable.tech/home/nightly/contributor/docs/style-guide).
2224
- [ ] Changelog updated
2325
- [ ] Cargo.toml only contains references to git tags (not specific commits or branches)
24-
```
2526

26-
```[tasklist]
27-
# Acceptance
27+
### Acceptance
28+
2829
- [ ] Feature Tracker has been updated
2930
- [ ] Proper release label has been added
30-
```

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- uses: dtolnay/rust-toolchain@master
3939
with:
4040
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
41-
- uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
41+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
4242
with:
4343
key: udeps
4444
- run: cargo install --locked [email protected]
@@ -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@4de59db63a066737e557c2c4dd3d1f70206de781 # v2.0.10
63+
- uses: EmbarkStudios/cargo-deny-action@34899fc7ba81ca6268d5947a7a16b4649013fea1 # v2.0.11
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@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
78+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
7979
with:
8080
key: doc
8181
- run: cargo doc --document-private-items
@@ -96,10 +96,11 @@ 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@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
99+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
100100
with:
101101
key: test
102-
- run: cargo test --all-features
102+
- run: cargo test --no-default-features --workspace
103+
- run: cargo test --all-features --workspace
103104

104105
tests_passed:
105106
name: All tests passed

.github/workflows/pr_pre-commit.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ name: pre-commit
33

44
on:
55
pull_request:
6+
merge_group:
67

78
env:
89
CARGO_TERM_COLOR: always
9-
RUST_TOOLCHAIN_VERSION: "nightly-2025-01-15"
10+
RUST_TOOLCHAIN_VERSION: "nightly-2025-05-26"
1011

1112
permissions: {}
1213

@@ -18,7 +19,7 @@ jobs:
1819
with:
1920
persist-credentials: false
2021
fetch-depth: 0
21-
- uses: stackabletech/actions/run-pre-commit@2d3d7ddad981ae09901d45a0f6bf30c2658b1b78 # v0.7.0
22+
- uses: stackabletech/actions/run-pre-commit@4bfd3b65f22af597fe784599c077dc34bf5894a7 # v0.8.0
2223
with:
2324
rust: ${{ env.RUST_TOOLCHAIN_VERSION }}
2425
# rust-src is required for trybuild stderr output comparison to work

.pre-commit-config.yaml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,21 @@ default_language_version:
44

55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # 4.6.0
7+
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # 5.0.0
88
hooks:
99
- id: trailing-whitespace
1010
- id: end-of-file-fixer
1111
- id: detect-aws-credentials
1212
args: ["--allow-missing-credentials"]
1313
- id: detect-private-key
1414

15-
- repo: https://github.com/doublify/pre-commit-rust
16-
rev: eeee35a89e69d5772bdee97db1a6a898467b686e # 1.0
17-
hooks:
18-
- id: clippy
19-
args: ["--all-targets", "--", "-D", "warnings"]
2015
- repo: https://github.com/adrienverge/yamllint
21-
rev: 81e9f98ffd059efe8aa9c1b1a42e5cce61b640c6 # 1.35.1
16+
rev: 79a6b2b1392eaf49cdd32ac4f14be1a809bbd8f7 # 1.37.1
2217
hooks:
2318
- id: yamllint
2419

2520
- repo: https://github.com/igorshubovych/markdownlint-cli
26-
rev: f295829140d25717bc79368d3f966fc1f67a824f # 0.41.0
21+
rev: 192ad822316c3a22fb3d3cc8aa6eafa0b8488360 # 0.45.0
2722
hooks:
2823
- id: markdownlint
2924

@@ -34,7 +29,7 @@ repos:
3429
args: ["--severity=info"]
3530

3631
- repo: https://github.com/rhysd/actionlint
37-
rev: 62dc61a45fc95efe8c800af7a557ab0b9165d63b # 1.7.1
32+
rev: 03d0035246f3e81f36aed592ffb4bebf33a03106 # 1.7.7
3833
hooks:
3934
- id: actionlint
4035

@@ -52,10 +47,27 @@ repos:
5247
stages: [pre-commit, pre-merge-commit, manual]
5348
pass_filenames: false
5449

55-
- id: rustfmt
56-
name: rustfmt
50+
- id: cargo-rustfmt
51+
name: cargo-rustfmt
5752
language: system
5853
# Pinning to a specific rustc version, so that we get consistent formatting
59-
entry: cargo +nightly-2025-01-15 fmt --all -- --check
60-
stages: [pre-commit]
54+
entry: cargo +nightly-2025-05-26 fmt --all -- --check
55+
stages: [pre-commit, pre-merge-commit]
56+
pass_filenames: false
57+
files: \.rs$
58+
59+
- id: cargo-clippy
60+
name: cargo-clippy
61+
language: system
62+
entry: cargo clippy --all-targets -- -D warnings
63+
stages: [pre-commit, pre-merge-commit]
64+
pass_filenames: false
65+
files: \.rs$
66+
67+
- id: crd-preview
68+
name: crd-preview
69+
language: system
70+
entry: cargo xtask crd preview
71+
stages: [pre-commit, pre-merge-commit]
6172
pass_filenames: false
73+
files: \.rs$

.scripts/verify_crate_versions.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ set -euo pipefail
1212
# stackable-webhook-0.3.1
1313

1414
for CRATE in $(find ./crates/ -mindepth 2 -name Cargo.toml -print0 | xargs -0 -n 1 dirname | xargs -n 1 basename | sort); do
15+
if [ "$CRATE" = "xtask" ]; then
16+
continue # Skip xtask binary, because it is not published and only used for internal tooling
17+
fi
18+
1519
# Get the version in Cargo.toml
1620
CRATE_VERSION=$(grep 'version' "./crates/$CRATE/Cargo.toml" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
1721
[ -n "$CRATE_VERSION" ] || (
@@ -40,7 +44,6 @@ for CRATE in $(find ./crates/ -mindepth 2 -name Cargo.toml -print0 | xargs -0 -n
4044
echo "Ensure the version in ./crates/$CRATE/Cargo.toml matches the version in ./crates/$ASSOCIATED_CRATE/Cargo.toml" >&2
4145
exit 23
4246
)
43-
4447
else
4548
# Get the latest documented version from the CHANGELOG.md
4649
CHANGELOG_VERSION=$(grep -oE '\[[0-9]+\.[0-9]+\.[0-9]+\]' "./crates/$CRATE/CHANGELOG.md" | head -1 | tr -d '[]')

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"rust-analyzer.cargo.features": "all",
33
"rust-analyzer.rustfmt.overrideCommand": [
44
"rustfmt",
5-
"+nightly-2025-01-15",
5+
"+nightly-2025-05-26",
66
"--"
7-
],
7+
]
88
}

.yamllint.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ rules:
77
check-keys: false
88
comments:
99
min-spaces-from-content: 1 # Needed due to https://github.com/adrienverge/yamllint/issues/443
10+
indentation:
11+
ignore:
12+
crates/stackable-operator/crds/*.yaml

0 commit comments

Comments
 (0)