test/e2e/framework: use restricted policy by default
This commit is contained in:
@@ -534,8 +534,7 @@ func (f *Framework) CreateNamespace(baseName string, labels map[string]string) (
|
|||||||
labels = labelsCopy
|
labels = labelsCopy
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(sur): set to restricted before 1.24 test freeze
|
enforceLevel := admissionapi.LevelRestricted
|
||||||
enforceLevel := admissionapi.LevelPrivileged
|
|
||||||
if f.NamespacePodSecurityEnforceLevel != "" {
|
if f.NamespacePodSecurityEnforceLevel != "" {
|
||||||
enforceLevel = f.NamespacePodSecurityEnforceLevel
|
enforceLevel = f.NamespacePodSecurityEnforceLevel
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user