Skip to content

Commit d60058f

Browse files
Merge branch 'main' into feat/role-group-node-attr
2 parents a291a18 + 9e4b511 commit d60058f

15 files changed

Lines changed: 59 additions & 36 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
## [25.11.0] - 2025-11-07
8+
9+
## [25.11.0-rc1] - 2025-11-06
10+
711
### Added
812

913
- Add end-of-support checker which can be controlled with environment variables and CLI arguments ([#38]).

default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# on Darwin (macOS), but doesn't seem to actually be necessary beyond
66
# production hardening.
77
fakeroot =
8-
if self.buildPlatform.isDarwin then
8+
if self.stdenv.buildPlatform.isDarwin then
99
self.writeScriptBin "fakeroot" ''exec "$@"''
1010
else
1111
super.fakeroot;
@@ -14,7 +14,7 @@
1414
# (non-Nix build tools like Tilt, as well as the container composition scripts)
1515
, pkgsLocal ? import nixpkgs { inherit overlays; }
1616
# Default to building for the local CPU architecture
17-
, targetArch ? pkgsLocal.hostPlatform.linuxArch
17+
, targetArch ? pkgsLocal.stdenv.hostPlatform.linuxArch
1818
, targetSystem ? "${targetArch}-unknown-linux-gnu"
1919
, pkgsTarget ? import nixpkgs {
2020
inherit overlays;

nix/sources.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/operator-binary/src/controller/validate.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ mod tests {
270270

271271
use super::{ErrorDiscriminants, validate};
272272
use crate::{
273+
built_info,
273274
controller::{ContextNames, ValidatedCluster, ValidatedLogging, ValidatedOpenSearchConfig},
274275
crd::{
275276
NodeRoles,
@@ -294,9 +295,15 @@ mod tests {
294295
Some(ValidatedCluster::new(
295296
ResolvedProductImage {
296297
product_version: "3.1.0".to_owned(),
297-
app_version_label_value: LabelValue::from_str("3.1.0-stackable0.0.0-dev")
298-
.expect("should be a valid label value"),
299-
image: "oci.stackable.tech/sdp/opensearch:3.1.0-stackable0.0.0-dev".to_string(),
298+
app_version_label_value: LabelValue::from_str(&format!(
299+
"3.1.0-stackable{pkg_version}",
300+
pkg_version = built_info::PKG_VERSION
301+
))
302+
.expect("should be a valid label value"),
303+
image: format!(
304+
"oci.stackable.tech/sdp/opensearch:3.1.0-stackable{pkg_version}",
305+
pkg_version = built_info::PKG_VERSION
306+
),
300307
image_pull_policy: "Always".to_owned(),
301308
pull_secrets: None,
302309
},

scripts/run-tests

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
144144
default=os.path.join("tests", "_work"),
145145
)
146146

147+
parser.add_argument(
148+
"--listener-class-preset",
149+
help="Choose the ListenerClass preset",
150+
type=str,
151+
required=False,
152+
)
153+
147154
return parser.parse_args(argv)
148155

149156

@@ -285,7 +292,9 @@ def release_file(
285292
logging.error(f"Failed to delete patched release file: {release_file}")
286293

287294

288-
def maybe_install_release(skip_release: bool, release_file: str) -> None:
295+
def maybe_install_release(
296+
skip_release: bool, release_file: str, listener_class_preset: str
297+
) -> None:
289298
if skip_release:
290299
logging.debug("Skip release installation")
291300
return
@@ -296,6 +305,11 @@ def maybe_install_release(skip_release: bool, release_file: str) -> None:
296305
"install",
297306
"--release-file",
298307
release_file,
308+
*(
309+
["--listener-class-preset", listener_class_preset]
310+
if listener_class_preset
311+
else []
312+
),
299313
"tests",
300314
]
301315
logging.debug(f"Running : {stackablectl_cmd}")
@@ -436,7 +450,7 @@ def main(argv) -> int:
436450
have_requirements()
437451
gen_tests(opts.test_suite, opts.namespace, opts.work_dir)
438452
with release_file(opts.operator, opts.skip_operator) as f:
439-
maybe_install_release(opts.skip_release, f)
453+
maybe_install_release(opts.skip_release, f, opts.listener_class_preset)
440454
if opts.skip_tests:
441455
logging.info("Skip running tests.")
442456
else:

tests/templates/kuttl/external-access/opensearch.yaml.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ spec:
77
image:
88
{% if test_scenario['values']['opensearch'].find(",") > 0 %}
99
custom: "{{ test_scenario['values']['opensearch'].split(',')[1] }}"
10-
productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}"
11-
{% else %}
12-
productVersion: "{{ test_scenario['values']['opensearch'] }}"
1310
{% endif %}
11+
productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}"
1412
pullPolicy: IfNotPresent
1513
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
1614
clusterConfig:

tests/templates/kuttl/ldap/21-install-opensearch.yaml.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ spec:
77
image:
88
{% if test_scenario['values']['opensearch'].find(",") > 0 %}
99
custom: "{{ test_scenario['values']['opensearch'].split(',')[1] }}"
10-
productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}"
11-
{% else %}
12-
productVersion: "{{ test_scenario['values']['opensearch'] }}"
1310
{% endif %}
11+
productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}"
1412
pullPolicy: IfNotPresent
1513
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
1614
clusterConfig:

tests/templates/kuttl/logging/20-install-opensearch.yaml.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ spec:
2121
image:
2222
{% if test_scenario['values']['opensearch'].find(",") > 0 %}
2323
custom: "{{ test_scenario['values']['opensearch'].split(',')[1] }}"
24-
productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}"
25-
{% else %}
26-
productVersion: "{{ test_scenario['values']['opensearch'] }}"
2724
{% endif %}
25+
productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}"
2826
pullPolicy: IfNotPresent
2927
clusterConfig:
3028
vectorAggregatorConfigMapName: opensearch-vector-aggregator-discovery

tests/templates/kuttl/metrics/20-install-opensearch.yaml.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ spec:
77
image:
88
{% if test_scenario['values']['opensearch'].find(",") > 0 %}
99
custom: "{{ test_scenario['values']['opensearch'].split(',')[1] }}"
10-
productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}"
11-
{% else %}
12-
productVersion: "{{ test_scenario['values']['opensearch'] }}"
1310
{% endif %}
11+
productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}"
1412
pullPolicy: IfNotPresent
1513
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
1614
clusterConfig:

tests/templates/kuttl/opensearch-dashboards/10-install-opensearch.yaml.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ spec:
77
image:
88
{% if test_scenario['values']['opensearch'].find(",") > 0 %}
99
custom: "{{ test_scenario['values']['opensearch'].split(',')[1] }}"
10-
productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}"
11-
{% else %}
12-
productVersion: "{{ test_scenario['values']['opensearch'] }}"
1310
{% endif %}
11+
productVersion: "{{ test_scenario['values']['opensearch'].split(',')[0] }}"
1412
pullPolicy: IfNotPresent
1513
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
1614
clusterConfig:

0 commit comments

Comments
 (0)