Skip to content

Commit d0f57e6

Browse files
adwk67razvan
andauthored
tests: added namespace patch for openshift tests (#234)
* tests: added namespace patch for openshift tests * Update tests/release.yaml Co-authored-by: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> --------- Co-authored-by: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com>
1 parent 0d5714f commit d0f57e6

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/release.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Contains all operators required to run the test suite.
2+
---
3+
releases:
4+
# Do not change the name of the release as it's referenced from scripts/run-tests
5+
tests:
6+
releaseDate: 1970-01-01
7+
description: Integration test
8+
products:
9+
commons:
10+
operatorVersion: 0.0.0-dev
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% if test_scenario['values']['openshift'] == 'true' %}
2+
# see https://github.com/stackabletech/issues/issues/566
3+
---
4+
apiVersion: kuttl.dev/v1beta1
5+
kind: TestStep
6+
commands:
7+
- script: kubectl patch namespace $NAMESPACE -p '{"metadata":{"labels":{"pod-security.kubernetes.io/enforce":"privileged"}}}'
8+
timeout: 120
9+
{% endif %}

0 commit comments

Comments
 (0)