Improve an error message when privileged containers are disallowed globally on the cluster.

This commit is contained in:
Slava Semushin
2017-01-05 18:07:50 +01:00
parent bd100b3b80
commit 7e4b047743
2 changed files with 2 additions and 2 deletions

View File

@@ -3692,7 +3692,7 @@ func ValidateSecurityContext(sc *api.SecurityContext, fldPath *field.Path) field
if sc.Privileged != nil {
if *sc.Privileged && !capabilities.Get().AllowPrivileged {
allErrs = append(allErrs, field.Forbidden(fldPath.Child("privileged"), "disallowed by policy"))
allErrs = append(allErrs, field.Forbidden(fldPath.Child("privileged"), "disallowed by cluster policy"))
}
}