Skip to content

Commit 286bf2c

Browse files
authored
test: fix spark connect client image (#606)
1 parent ff0e2da commit 286bf2c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/templates/kuttl/spark-connect/20-run-connect-client.yaml.j2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ spec:
5757
activeDeadlineSeconds: 600
5858
containers:
5959
- name: simple-connect-app
60-
{% if test_scenario['values']['spark-connect'].find(",") > 0 %}
61-
image: "{{ test_scenario['values']['spark-connect'].split(',')[1] }}"
62-
{% else %}
63-
image: oci.stackable.tech/sdp/spark-connect-client:{{ test_scenario['values']['spark-connect'] }}-stackable0.0.0-dev
64-
{% endif %}
60+
{% set spark_connect_client_version = test_scenario['values']['spark-connect'].split(',')[0] %}
61+
# Extract the Spark Connect version and use it for the client.
62+
# Using a separate dimension for the client doesn't work because beku would generate tests with
63+
# version mismatches between client and server.
64+
image: oci.stackable.tech/stackable/spark-connect-client:{{ spark_connect_client_version }}-stackable0.0.0-dev
6565
imagePullPolicy: IfNotPresent
6666
command:
6767
[

0 commit comments

Comments
 (0)