Skip to content

Commit 4ab2110

Browse files
Generated commit to update templated files based on rev 17a0298 in stackabletech/operator-templating repo. (#189)
Triggered by: Manual run triggered by: sbernauer with message [Add OPERATOR_IMAGE env var to operator containe]
1 parent c3da4a1 commit 4ab2110

File tree

6 files changed

+30
-21
lines changed

6 files changed

+30
-21
lines changed

.github/pull_request_template.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# Author
1313
- [ ] Changes are OpenShift compatible
1414
- [ ] CRD changes approved
15+
- [ ] CRD documentation for all fields, following the [style guide](https://docs.stackable.tech/home/nightly/contributor/style-guide).
1516
- [ ] Helm chart can be installed and deployed operator works
1617
- [ ] Integration tests passed (for non trivial changes)
1718
- [ ] Changes need to be "offline" compatible
@@ -21,7 +22,7 @@
2122
# Reviewer
2223
- [ ] Code contains useful comments
2324
- [ ] (Integration-)Test cases added
24-
- [ ] Documentation added or updated
25+
- [ ] Documentation added or updated. Follows the [style guide](https://docs.stackable.tech/home/nightly/contributor/style-guide).
2526
- [ ] Changelog updated
2627
- [ ] Cargo.toml only contains references to git tags (not specific commits or branches)
2728
```

.github/workflows/build.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4444
with:
4545
submodules: recursive
46-
- uses: dtolnay/rust-toolchain@1.71.0
46+
- uses: dtolnay/rust-toolchain@1.74.0
4747
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
4848
with:
4949
key: udeps
@@ -121,7 +121,7 @@ jobs:
121121
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
122122
with:
123123
submodules: recursive
124-
- uses: dtolnay/rust-toolchain@1.71.0
124+
- uses: dtolnay/rust-toolchain@1.74.0
125125
with:
126126
components: rustfmt
127127
- run: cargo fmt --all -- --check
@@ -137,7 +137,7 @@ jobs:
137137
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
138138
with:
139139
submodules: recursive
140-
- uses: dtolnay/rust-toolchain@1.71.0
140+
- uses: dtolnay/rust-toolchain@1.74.0
141141
with:
142142
components: clippy
143143
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
@@ -170,7 +170,7 @@ jobs:
170170
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
171171
with:
172172
submodules: recursive
173-
- uses: dtolnay/rust-toolchain@1.71.0
173+
- uses: dtolnay/rust-toolchain@1.74.0
174174
with:
175175
components: rustfmt
176176
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
@@ -190,7 +190,7 @@ jobs:
190190
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
191191
with:
192192
submodules: recursive
193-
- uses: dtolnay/rust-toolchain@1.71.0
193+
- uses: dtolnay/rust-toolchain@1.74.0
194194
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
195195
with:
196196
key: test
@@ -252,7 +252,7 @@ jobs:
252252
with:
253253
version: v3.6.2
254254
- name: Set up cargo
255-
uses: dtolnay/rust-toolchain@1.71.0
255+
uses: dtolnay/rust-toolchain@1.74.0
256256
- name: Set up rust-cache
257257
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
258258
with:
@@ -310,7 +310,7 @@ jobs:
310310
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
311311
with:
312312
submodules: recursive
313-
- uses: dtolnay/rust-toolchain@1.71.0
313+
- uses: dtolnay/rust-toolchain@1.74.0
314314
with:
315315
components: rustfmt
316316
# This step checks if the current run was triggered by a push to a pr (or a pr being created).

default.nix

+8-7
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@
2020
nativeBuildInputs = [ pkgs.pkg-config ];
2121
buildInputs = [ pkgs.krb5 ];
2222
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
23-
BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.glibc.dev}/include -I${pkgs.clang.cc.lib}/lib/clang/${pkgs.lib.getVersion pkgs.clang.cc}/include";
23+
# Clang's resource directory is located at ${pkgs.clang.cc.lib}/lib/clang/<version>.
24+
# Starting with Clang 16, only the major version is used for the resource directory,
25+
# whereas the full version was used in prior Clang versions (see
26+
# https://github.com/llvm/llvm-project/commit/e1b88c8a09be25b86b13f98755a9bd744b4dbf14).
27+
# The clang wrapper ${pkgs.clang} provides a symlink to the resource directory, which
28+
# we use instead.
29+
BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.glibc.dev}/include -I${pkgs.clang}/resource-root/include";
2430
};
2531
libgssapi-sys = attrs: {
2632
buildInputs = [ pkgs.krb5 ];
2733
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
28-
BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.glibc.dev}/include -I${pkgs.clang.cc.lib}/lib/clang/${pkgs.lib.getVersion pkgs.clang.cc}/include";
29-
};
30-
# FIXME: Remove when https://github.com/NixOS/nixpkgs/pull/266787 is merged.
31-
# See https://github.com/stackabletech/operator-templating/pull/289 for details.
32-
ring = attrs: {
33-
CARGO_MANIFEST_LINKS = attrs.links;
34+
BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.glibc.dev}/include -I${pkgs.clang}/resource-root/include";
3435
};
3536
};
3637
}

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

+9-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ spec:
1414
{{- include "operator.selectorLabels" . | nindent 6 }}
1515
template:
1616
metadata:
17-
{{- with .Values.podAnnotations }}
1817
annotations:
18+
internal.stackable.tech/image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
19+
{{- with .Values.podAnnotations }}
1920
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
2021
{{- toYaml . | nindent 8 }}
21-
{{- end }}
22+
{{- end }}
2223
labels:
2324
{{- include "operator.selectorLabels" . | nindent 8 }}
2425
spec:
@@ -40,6 +41,12 @@ spec:
4041
volumeMounts:
4142
- mountPath: /etc/stackable/{{ include "operator.appname" . }}/config-spec
4243
name: config-spec
44+
env:
45+
- name: OPERATOR_IMAGE
46+
# Tilt can use annotations as image paths, but not env variables
47+
valueFrom:
48+
fieldRef:
49+
fieldPath: metadata.annotations['internal.stackable.tech/image']
4350
volumes:
4451
- name: config-spec
4552
configMap:

nix/sources.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"homepage": "",
1818
"owner": "NixOS",
1919
"repo": "nixpkgs",
20-
"rev": "676fe5e01b9a41fa14aaa48d87685677664104b1",
21-
"sha256": "0afm0dvqrjzdxhilhg0x9rbw8apfd5yg79f4qpdmdfzd8h68h72i",
20+
"rev": "3f21a22b5aafefa1845dec6f4a378a8f53d8681c",
21+
"sha256": "15y8k3hazg91kscbmn7dy6m0q6zvmhlvvhg97gcl5kw87y0svzxk",
2222
"type": "tarball",
23-
"url": "https://github.com/NixOS/nixpkgs/archive/676fe5e01b9a41fa14aaa48d87685677664104b1.tar.gz",
23+
"url": "https://github.com/NixOS/nixpkgs/archive/3f21a22b5aafefa1845dec6f4a378a8f53d8681c.tar.gz",
2424
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
2525
}
2626
}

rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.71.0"
2+
channel = "1.74.0"

0 commit comments

Comments
 (0)