Skip to content

Commit c235572

Browse files
authored
Merge branch 'main' into feat/support-sans
2 parents c263ae7 + c0c928f commit c235572

File tree

83 files changed

+5987
-1228
lines changed

Some content is hidden

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

83 files changed

+5987
-1228
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/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-
```

.pre-commit-config.yaml

Lines changed: 24 additions & 12 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
5954
entry: cargo +nightly-2025-05-26 fmt --all -- --check
60-
stages: [pre-commit]
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"rust-analyzer.cargo.features": "all",
3+
"rust-analyzer.imports.granularity.group": "crate",
34
"rust-analyzer.rustfmt.overrideCommand": [
45
"rustfmt",
56
"+nightly-2025-05-26",

.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)