fix: Improve OpenShift compatibility (#1066)

This commit is contained in:
techknowlogick
2026-04-15 14:46:54 +00:00
parent a02a7feb6e
commit b7663bb95f
9 changed files with 36 additions and 18 deletions
+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