From 1e372cc58612e2a753b0e98df1de8eb78a6cfc40 Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Thu, 8 May 2025 12:10:12 +0200 Subject: [PATCH 1/4] test: Bump OPA to 1.4.2 --- tests/test-definition.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-definition.yaml b/tests/test-definition.yaml index 73e8948e..c70153fb 100644 --- a/tests/test-definition.yaml +++ b/tests/test-definition.yaml @@ -18,7 +18,7 @@ dimensions: # - 2.9.3,oci.stackable.tech/sandbox/airflow:2.9.3-stackable0.0.0-dev - name: opa-latest values: - - 1.0.1 + - 1.4.2 - name: ldap-authentication values: - no-tls From 5e5b8602ba1094d417a4b26f080805fa199e27fb Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Thu, 8 May 2025 12:10:33 +0200 Subject: [PATCH 2/4] test(opa): Allow custom images for OPA --- tests/templates/kuttl/opa/20-install-opa.yaml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/templates/kuttl/opa/20-install-opa.yaml.j2 b/tests/templates/kuttl/opa/20-install-opa.yaml.j2 index c9beec62..756140b8 100644 --- a/tests/templates/kuttl/opa/20-install-opa.yaml.j2 +++ b/tests/templates/kuttl/opa/20-install-opa.yaml.j2 @@ -11,6 +11,12 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['opa-latest'] }}" +{% if test_scenario['values']['opa-latest'].find(",") > 0 %} + custom: "{{ test_scenario['values']['opa-latest'].split(',')[1] }}" + productVersion: "{{ test_scenario['values']['opa-latest'].split(',')[0] }}" +{% else %} + productVersion: "{{ test_scenario['values']['opa-latest'] }}" +{% endif %} pullPolicy: IfNotPresent clusterConfig: {% if lookup('env', 'VECTOR_AGGREGATOR') %} From bd311c2bf6e17ea9aea3ecbe35a388148483a0c9 Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Thu, 8 May 2025 12:12:43 +0200 Subject: [PATCH 3/4] chore: Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d63246b2..db8d1b79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ - BREAKING: Inject the vector aggregator address into the vector config using the env var `VECTOR_AGGREGATOR_ADDRESS` instead of having the operator write it to the vector config ([#600]). - test: Bump to Vector 0.46.1 ([#620]). +- test: Bump OPA to `1.4.2` ([#624]). ### Fixed @@ -34,6 +35,7 @@ [#608]: https://github.com/stackabletech/airflow-operator/pull/608 [#613]: https://github.com/stackabletech/airflow-operator/pull/613 [#620]: https://github.com/stackabletech/airflow-operator/pull/620 +[#624]: https://github.com/stackabletech/airflow-operator/pull/624 ## [25.3.0] - 2025-03-21 From 82ac88808103641e5e0862ca405b48b5919010ce Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Thu, 8 May 2025 12:28:48 +0200 Subject: [PATCH 4/4] test(opa): Fix custom images for OPA --- tests/templates/kuttl/opa/20-install-opa.yaml.j2 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/templates/kuttl/opa/20-install-opa.yaml.j2 b/tests/templates/kuttl/opa/20-install-opa.yaml.j2 index 756140b8..b82531c9 100644 --- a/tests/templates/kuttl/opa/20-install-opa.yaml.j2 +++ b/tests/templates/kuttl/opa/20-install-opa.yaml.j2 @@ -10,12 +10,11 @@ metadata: name: opa spec: image: - productVersion: "{{ test_scenario['values']['opa-latest'] }}" {% if test_scenario['values']['opa-latest'].find(",") > 0 %} - custom: "{{ test_scenario['values']['opa-latest'].split(',')[1] }}" - productVersion: "{{ test_scenario['values']['opa-latest'].split(',')[0] }}" + custom: "{{ test_scenario['values']['opa-latest'].split(',')[1] }}" + productVersion: "{{ test_scenario['values']['opa-latest'].split(',')[0] }}" {% else %} - productVersion: "{{ test_scenario['values']['opa-latest'] }}" + productVersion: "{{ test_scenario['values']['opa-latest'] }}" {% endif %} pullPolicy: IfNotPresent clusterConfig: