Skip to content

Commit

Permalink
Fixes usage of custom images in the overrides test (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfrancke authored Oct 2, 2024
1 parent 97b675d commit 3bdb355
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/templates/kuttl/overrides/10-install-airflow.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ metadata:
name: airflow-celery
spec:
image:
{% if test_scenario['values']['airflow-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['airflow-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['airflow-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['airflow-latest'] }}"
{% endif %}
clusterConfig:
loadExamples: true
exposeConfig: false
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/overrides/20-install-airflow2.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ metadata:
name: airflow-kubernetes
spec:
image:
{% if test_scenario['values']['airflow-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['airflow-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['airflow-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['airflow-latest'] }}"
{% endif %}
clusterConfig:
loadExamples: true
exposeConfig: false
Expand Down

0 comments on commit 3bdb355

Please sign in to comment.