Skip to content

Commit 03b827d

Browse files
chore: Generated commit to update templated files since the last template run up to stackabletech/operator-templating@a053ff5 (#768)
Reference-to: stackabletech/operator-templating@a053ff5 (propagate service dns domain env var)
1 parent 9a3bcf8 commit 03b827d

File tree

3 files changed

+9
-27
lines changed

3 files changed

+9
-27
lines changed

.github/workflows/pr_pre-commit.yaml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ env:
88
CARGO_TERM_COLOR: always
99
RUST_TOOLCHAIN_VERSION: "1.80.1"
1010
HADOLINT_VERSION: "v2.12.0"
11+
PYTHON_VERSION: "3.12"
1112

1213
jobs:
1314
pre-commit:
@@ -22,29 +23,8 @@ jobs:
2223
with:
2324
fetch-depth: 0
2425
submodules: recursive
25-
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
26+
- uses: stackabletech/actions/run-pre-commit@e8781161bc1eb037198098334cec6061fe24b6c3 # v0.0.2
2627
with:
27-
python-version: '3.12'
28-
- uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
29-
with:
30-
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
31-
components: rustfmt,clippy
32-
- name: Setup Hadolint
33-
shell: bash
34-
run: |
35-
set -euo pipefail
36-
37-
LOCATION_DIR="$HOME/.local/bin"
38-
LOCATION_BIN="$LOCATION_DIR/hadolint"
39-
40-
SYSTEM=$(uname -s)
41-
ARCH=$(uname -m)
42-
43-
mkdir -p "$LOCATION_DIR"
44-
curl -sL -o "${LOCATION_BIN}" "https://github.com/hadolint/hadolint/releases/download/${{ env.HADOLINT_VERSION }}/hadolint-$SYSTEM-$ARCH"
45-
chmod 700 "${LOCATION_BIN}"
46-
47-
echo "$LOCATION_DIR" >> "$GITHUB_PATH"
48-
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
49-
with:
50-
extra_args: "--from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}"
28+
python-version: ${{ env.PYTHON_VERSION }}
29+
rust: ${{ env.RUST_TOOLCHAIN_VERSION }}
30+
hadolint: ${{ env.HADOLINT_VERSION }}

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ repos:
6767
name: regenerate-charts
6868
language: system
6969
entry: make regenerate-charts
70-
stages: [commit, merge-commit, manual]
70+
stages: [pre-commit, pre-merge-commit, manual]
7171
pass_filenames: false
7272

7373
- id: cargo-test
7474
name: cargo-test
7575
language: system
7676
entry: cargo test
77-
stages: [commit, merge-commit, manual]
77+
stages: [pre-commit, pre-merge-commit, manual]
7878
pass_filenames: false

deploy/helm/kafka-operator/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ spec:
4747
valueFrom:
4848
fieldRef:
4949
fieldPath: metadata.annotations['internal.stackable.tech/image']
50+
- name: KUBERNETES_SERVICE_DNS_DOMAIN
51+
value: {{ .Values.kubernetesServiceDnsDomain | default "cluster.local" | quote }}
5052
- name: KAFKA_BROKER_CLUSTERROLE
5153
value: {{ include "operator.fullname" . }}-kafka-broker-clusterrole
5254
volumes:

0 commit comments

Comments
 (0)