Skip to content

Commit 58c9efb

Browse files
committed
test(authorizer): Allow custom images for OPA
1 parent d1c4240 commit 58c9efb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/templates/kuttl/authorizer/02-install-opa.yaml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ metadata:
2929
name: test-opa
3030
spec:
3131
image:
32+
{% if test_scenario['values']['opa'].find(",") > 0 %}
33+
custom: "{{ test_scenario['values']['opa'].split(',')[1] }}"
34+
productVersion: "{{ test_scenario['values']['opa'].split(',')[0] }}"
35+
{% else %}
3236
productVersion: "{{ test_scenario['values']['opa'] }}"
37+
{% endif %}
3338
pullPolicy: IfNotPresent
3439
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
3540
clusterConfig:

0 commit comments

Comments
 (0)