fix: Improve OpenShift compatibility (#1066)

This commit is contained in:
techknowlogick committed 2026-04-15 14:46:54 +00:00
1 parent a02a7feb6e
commit b7663bb95f
9 files changed
+36 -18

No files matched your search

+11 -2
View File
@@ -9,9 +9,8 @@ tests:
set:
openshift.enabled: true
asserts:
- equal:
- notExists:
path: spec.hostUsers
value: false
- equal:
path: spec.containers[0].securityContext
value:
@@ -22,3 +21,13 @@ tests:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
- it: renders an explicit hostUsers=false override for the test pod
set:
openshift:
enabled: true
hostUsers: false
asserts:
- equal:
path: spec.hostUsers
value: false