Improve an error message when privileged containers are disallowed globally on the cluster.
This commit is contained in:
@@ -8601,7 +8601,7 @@ func TestValidateSecurityContext(t *testing.T) {
|
||||
"request privileged when capabilities forbids": {
|
||||
sc: privRequestWithGlobalDeny,
|
||||
errorType: "FieldValueForbidden",
|
||||
errorDetail: "disallowed by policy",
|
||||
errorDetail: "disallowed by cluster policy",
|
||||
},
|
||||
"negative RunAsUser": {
|
||||
sc: negativeRunAsUser,
|
||||
|
||||
Reference in New Issue
Block a user