Skip to content

Commit 5e5b860

Browse files
committed
test(opa): Allow custom images for OPA
1 parent 1e372cc commit 5e5b860

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/templates/kuttl/opa/20-install-opa.yaml.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ metadata:
1111
spec:
1212
image:
1313
productVersion: "{{ test_scenario['values']['opa-latest'] }}"
14+
{% if test_scenario['values']['opa-latest'].find(",") > 0 %}
15+
custom: "{{ test_scenario['values']['opa-latest'].split(',')[1] }}"
16+
productVersion: "{{ test_scenario['values']['opa-latest'].split(',')[0] }}"
17+
{% else %}
18+
productVersion: "{{ test_scenario['values']['opa-latest'] }}"
19+
{% endif %}
1420
pullPolicy: IfNotPresent
1521
clusterConfig:
1622
{% if lookup('env', 'VECTOR_AGGREGATOR') %}

0 commit comments

Comments
 (0)