Skip to content

Commit a1b348c

Browse files
adwk67sbernauer
andauthored
fix(tests): Add condition for including file permission (#802)
* add condition for including permission * Update tests/templates/kuttl/smoke/20-install-test-opa.yaml.j2 Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de> --------- Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
1 parent 055b258 commit a1b348c

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 on some Kubernetes distributions (e.g. 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)