Skip to content

Commit bd982d7

Browse files
committed
add condition for including permission
1 parent 055b258 commit bd982d7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ commands:
2121
labels:
2222
app: test-opa
2323
spec:
24+
# This needs to be excluded for Openshift.
25+
# But as it is needed for K3s, retain everywhere except
26+
# for Openshift.
27+
{% if test_scenario['values']['openshift'] == 'false' %}
28+
securityContext:
29+
fsGroup: 1000
30+
{% endif %}
2431
containers:
2532
- name: test-opa
2633
image: oci.stackable.tech/sdp/testing-tools:0.3.0-stackable0.0.0-dev

0 commit comments

Comments
 (0)