Skip to content

Commit 3bdb355

Browse files
authored
Fixes usage of custom images in the overrides test (#514)
1 parent 97b675d commit 3bdb355

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/templates/kuttl/overrides/10-install-airflow.yaml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ metadata:
3737
name: airflow-celery
3838
spec:
3939
image:
40+
{% if test_scenario['values']['airflow-latest'].find(",") > 0 %}
41+
custom: "{{ test_scenario['values']['airflow-latest'].split(',')[1] }}"
42+
productVersion: "{{ test_scenario['values']['airflow-latest'].split(',')[0] }}"
43+
{% else %}
4044
productVersion: "{{ test_scenario['values']['airflow-latest'] }}"
45+
{% endif %}
4146
clusterConfig:
4247
loadExamples: true
4348
exposeConfig: false

tests/templates/kuttl/overrides/20-install-airflow2.yaml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ metadata:
55
name: airflow-kubernetes
66
spec:
77
image:
8+
{% if test_scenario['values']['airflow-latest'].find(",") > 0 %}
9+
custom: "{{ test_scenario['values']['airflow-latest'].split(',')[1] }}"
10+
productVersion: "{{ test_scenario['values']['airflow-latest'].split(',')[0] }}"
11+
{% else %}
812
productVersion: "{{ test_scenario['values']['airflow-latest'] }}"
13+
{% endif %}
914
clusterConfig:
1015
loadExamples: true
1116
exposeConfig: false

0 commit comments

Comments
 (0)