Skip to content

Commit 642422a

Browse files
committed
test(opa): Allow custom images for OPA
1 parent e595307 commit 642422a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ commands:
1111
name: opa
1212
spec:
1313
image:
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 %}
1418
productVersion: "{{ test_scenario['values']['opa-latest'] }}"
19+
{% endif %}
1520
pullPolicy: IfNotPresent
1621
clusterConfig:
1722
userInfo:

0 commit comments

Comments
 (0)