We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aea931a commit eb90e9eCopy full SHA for eb90e9e
internal/initialize/security_test.go
@@ -60,8 +60,10 @@ func TestPodSecurityContext(t *testing.T) {
60
assert.Assert(t, psc.RunAsUser == nil,
61
`Containers must not set runAsUser to 0`)
62
63
- assert.Assert(t, psc.SeccompProfile == nil,
64
- `SeccompProfile must be set to RuntimeDefault.`)
+ if assert.Check(t, psc.SeccompProfile == nil) {
+ assert.Assert(t, initialize.RestrictedSecurityContext().SeccompProfile != nil,
65
+ `SeccompProfile should be delegated to the container-level v1.SecurityContext`)
66
+ }
67
})
68
}
69
0 commit comments