Check ns setup error during e2e

This commit is contained in:
Jordan Liggitt 2017-12-12 13:20:56 -05:00
parent ee13444144
commit 3d5288ebf3
No known key found for this signature in database
GPG Key ID: 39928704103C7229

View File

@ -378,7 +378,7 @@ func (f *Framework) CreateNamespace(baseName string, labels map[string]string) (
f.namespacesToDelete = append(f.namespacesToDelete, ns)
}
if !f.SkipPrivilegedPSPBinding {
if err == nil && !f.SkipPrivilegedPSPBinding {
CreatePrivilegedPSPBinding(f, ns.Name)
}