Skip to content

Commit a13c44b

Browse files
committed
Merge branch 'spike/bundle-builder-v2' into spike/userinfofetcher-regorules
2 parents 232fd64 + edbe052 commit a13c44b

Some content is hidden

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

47 files changed

+851
-664
lines changed

.github/ISSUE_TEMPLATE/new_version.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ assignees: ''
77

88
---
99

10-
**Which new version of OpenPolicyAgent should we support?**
10+
## Which new version of OpenPolicyAgent should we support?
1111

1212
Please specify the version, version range or version numbers to support, please also add these to the issue title
1313

14-
**Additional information**
14+
## Additional information
1515

1616
If possible, provide a link to release notes/changelog
1717

18-
**Changes required**
18+
## Changes required
1919

2020
Are there any upstream changes that we need to support?
2121
e.g. new features, changed features, deprecated features etc.
2222

23+
## Implementation checklist
2324

24-
25-
**Implementation checklist**
26-
27-
Please don't change anything in this list.
28-
Not all of these steps are necessary for all versions.
25+
<!--
26+
Please don't change anything in this list.
27+
Not all of these steps are necessary for all versions.
28+
-->
2929

3030
- [ ] Update the Docker image
3131
- [ ] Update documentation to include supported version(s)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Check and Update Getting Started Script
2+
3+
<!--
4+
Make sure to update the link in 'issues/.github/ISSUE_TEMPLATE/pre-release-getting-started-scripts.md'
5+
when you rename this file.
6+
-->
7+
8+
<!--
9+
Replace 'TRACKING_ISSUE' with the applicable release tracking issue number.
10+
-->
11+
12+
Part of <https://github.com/stackabletech/issues/issues/TRACKING_ISSUE>
13+
14+
> [!NOTE]
15+
> During a Stackable release we need to check (and optionally update) the
16+
> getting-started scripts to ensure they still work after product and operator
17+
> updates.
18+
19+
```shell
20+
# Some of the scripts are in a code/ subdirectory
21+
# pushd docs/modules/superset/examples/getting_started
22+
# pushd docs/modules/superset/examples/getting_started/code
23+
pushd $(fd -td getting_started | grep examples); cd code 2>/dev/null || true
24+
25+
# Make a fresh cluster (~12 seconds)
26+
kind delete cluster && kind create cluster
27+
./getting_started.sh stackablectl
28+
29+
# Make a fresh cluster (~12 seconds)
30+
kind delete cluster && kind create cluster
31+
./getting_started.sh helm
32+
33+
popd
34+
```
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Bump Rust Dependencies for Stackable Release XX.(X)X
2+
3+
<!--
4+
Make sure to update the link in 'issues/.github/ISSUE_TEMPLATE/pre-release-operator-rust-deps.md'
5+
when you rename this file.
6+
-->
7+
8+
<!--
9+
Replace 'TRACKING_ISSUE' with the applicable release tracking issue number.
10+
-->
11+
12+
Part of <https://github.com/stackabletech/issues/issues/TRACKING_ISSUE>
13+
14+
> [!NOTE]
15+
> During a Stackable release we need to update various Rust dependencies before
16+
> entering the final release period to ensure we run the latest versions of
17+
> crates. These bumps also include previously updated and released crates from
18+
> the `operator-rs` repository.
19+
20+
```[tasklist]
21+
### Tasks
22+
- [ ] Bump Rust Dependencies, see below for more details.
23+
- [ ] Add changelog entry stating which important crates were bumped (including the version).
24+
```
25+
26+
> [!NOTE]
27+
> The bumping / updating of Rust dependencies is done in multiple steps:
28+
>
29+
> 1. Update the minimum Version in the root `Cargo.toml` manifest.
30+
> 2. Run the `cargo update` command, which also updates the `Cargo.lock` file.
31+
> 3. Lastly, run `make regenerate-nix` to update the `Cargo.nix` file.
32+
33+
```[tasklist]
34+
### Bump Rust Dependencies
35+
- [ ] Bump `stackable-operator` and friends.
36+
- [ ] Bump `product-version`.
37+
- [ ] Bump all other dependencies.
38+
```

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Author
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).
14+
- [ ] CRD documentation for all fields, following the [style guide](https://docs.stackable.tech/home/nightly/contributor/docs/style-guide).
1515
- [ ] Helm chart can be installed and deployed operator works
1616
- [ ] Integration tests passed (for non trivial changes)
1717
- [ ] Changes need to be "offline" compatible
@@ -22,7 +22,7 @@
2222
- [ ] Code contains useful comments
2323
- [ ] Code contains useful logging statements
2424
- [ ] (Integration-)Test cases added
25-
- [ ] Documentation added or updated. Follows the [style guide](https://docs.stackable.tech/home/nightly/contributor/docs-style-guide).
25+
- [ ] Documentation added or updated. Follows the [style guide](https://docs.stackable.tech/home/nightly/contributor/docs/style-guide).
2626
- [ ] Changelog updated
2727
- [ ] Cargo.toml only contains references to git tags (not specific commits or branches)
2828
```

.github/workflows/build.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ env:
2525
CARGO_TERM_COLOR: always
2626
CARGO_INCREMENTAL: '0'
2727
CARGO_PROFILE_DEV_DEBUG: '0'
28-
RUST_TOOLCHAIN_VERSION: "1.77.2"
28+
RUST_TOOLCHAIN_VERSION: "1.80.0"
2929
RUSTFLAGS: "-D warnings"
3030
RUSTDOCFLAGS: "-D warnings"
3131
RUST_LOG: "info"
@@ -44,8 +44,8 @@ jobs:
4444
- name: Install host dependencies
4545
uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # v1.4.2
4646
with:
47-
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
48-
version: 1.0
47+
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config apt-transport-https
48+
version: ubuntu-latest
4949
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5050
with:
5151
submodules: recursive
@@ -57,7 +57,7 @@ jobs:
5757
key: udeps
5858
cache-all-crates: "true"
5959
- uses: stackabletech/cargo-install-action@cargo-udeps
60-
- run: cargo udeps --workspace
60+
- run: cargo udeps --workspace --all-targets
6161

6262
# This job evaluates the github environment to determine why this action is running and selects the appropriate
6363
# target repository for published Helm charts based on this.
@@ -142,8 +142,8 @@ jobs:
142142
- name: Install host dependencies
143143
uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # v1.4.2
144144
with:
145-
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
146-
version: 1.0
145+
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config apt-transport-https
146+
version: ubuntu-latest
147147
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
148148
with:
149149
submodules: recursive
@@ -177,8 +177,8 @@ jobs:
177177
- name: Install host dependencies
178178
uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # v1.4.2
179179
with:
180-
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
181-
version: 1.0
180+
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config apt-transport-https
181+
version: ubuntu-latest
182182
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
183183
with:
184184
submodules: recursive
@@ -199,8 +199,8 @@ jobs:
199199
- name: Install host dependencies
200200
uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # v1.4.2
201201
with:
202-
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
203-
version: 1.0
202+
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config apt-transport-https
203+
version: ubuntu-latest
204204
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
205205
with:
206206
submodules: recursive
@@ -257,8 +257,8 @@ jobs:
257257
- name: Install host dependencies
258258
uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # v1.4.2
259259
with:
260-
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
261-
version: 1.0
260+
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config apt-transport-https
261+
version: ubuntu-latest
262262
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
263263
with:
264264
submodules: recursive
@@ -326,8 +326,8 @@ jobs:
326326
- name: Install host dependencies
327327
uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # v1.4.2
328328
with:
329-
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
330-
version: 1.0
329+
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config apt-transport-https
330+
version: ${{ matrix.runner }}
331331
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
332332
with:
333333
submodules: recursive
@@ -359,7 +359,6 @@ jobs:
359359
# Installing helm and yq on ubicloud-standard-8-arm only
360360
if [ "$(arch)" = "aarch64" ]; then
361361
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
362-
sudo apt-get -y install apt-transport-https
363362
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
364363
sudo apt-get -y update
365364
sudo apt-get -y install helm
@@ -369,7 +368,13 @@ jobs:
369368
make -e build
370369
- name: Publish Docker image and Helm chart
371370
if: ${{ !github.event.pull_request.head.repo.fork }}
372-
run: make -e publish
371+
run: |
372+
# We want to publish helmcharts only once as they have a common name, while still publishing both images with architecture specific tags
373+
if [ "$(uname -m)" = "x86_64" ]; then
374+
make -e publish
375+
else
376+
make -e docker-publish
377+
fi
373378
# Output the name of the published image to the Job output for later use
374379
- id: printtag
375380
name: Output image name and tag

.github/workflows/pr_pre-commit.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: pre-commit
3+
4+
on:
5+
pull_request:
6+
7+
jobs:
8+
pre-commit:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
12+
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
13+
with:
14+
python-version: '3.12'
15+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
16+
with:
17+
extra_args: "" # Disable --all-files until we have time to fix druid/stackable/bin/run-druid

.github/workflows/pr_reviewdog.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ jobs:
2323
with:
2424
github_token: ${{ secrets.GITHUB_TOKEN }}
2525

26-
flake8:
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
30-
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # tag=v5.1.0
31-
with:
32-
python-version: "3.12"
33-
- uses: reviewdog/action-flake8@99c2cfecdbc9111ec223b85b08af0e13a9a098dc # v3.10.0
34-
with:
35-
github_token: ${{ secrets.GITHUB_TOKEN }}
36-
3726
hadolint:
3827
runs-on: ubuntu-latest
3928
steps:

.markdownlint.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ MD013:
1414
# Number of characters for code blocks
1515
code_block_line_length: 9999
1616

17+
# MD033/no-inline-html
18+
MD033:
19+
allowed_elements: [h1, img, p]
20+
1721
# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
1822
MD024:
1923
# Only check sibling headings

.pre-commit-config.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
exclude: ^(Cargo\.nix|crate-hashes\.json|nix/.*)$
3+
24
# See https://pre-commit.com for more information
35
# See https://pre-commit.com/hooks.html for more hooks
46
repos:
@@ -28,11 +30,25 @@ repos:
2830
rev: v0.40.0
2931
hooks:
3032
- id: markdownlint
33+
types: [text]
34+
files: \.md(\.j2)*$
35+
36+
- repo: https://github.com/koalaman/shellcheck-precommit
37+
rev: v0.10.0
38+
hooks:
39+
- id: shellcheck
40+
args: ["--severity=info"]
3141

32-
- repo: https://github.com/PyCQA/flake8
33-
rev: 7.0.0
42+
# WARNING (@NickLarsenNZ): Nix users need to install ruff first.
43+
# If you do not, you will need to delete the cached ruff binary shown in the
44+
# error message
45+
- repo: https://github.com/astral-sh/ruff-pre-commit
46+
rev: v0.5.1
3447
hooks:
35-
- id: flake8
48+
# Run the linter.
49+
- id: ruff
50+
# Run the formatter.
51+
- id: ruff-format
3652

3753
- repo: local
3854
hooks:

.readme/partials/borrowed/documentation.md.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- markdownlint-disable MD041 -->
12
## Documentation
23

34
The stable documentation for this operator can be found [here](https://docs.stackable.tech/home/stable/{{operator_docs_slug}}).

0 commit comments

Comments
 (0)