Fix namespace controller on delete to not care if item not found

This commit is contained in:
derekwaynecarr
2015-06-03 22:59:07 -04:00
parent bc0816f5e5
commit 14d2128238
3 changed files with 29 additions and 15 deletions

View File

@@ -75,7 +75,7 @@ func (l *lifecycle) Admit(a admission.Attributes) (err error) {
return nil
}
return admission.NewForbidden(a, fmt.Errorf("Namespace %s is terminating", a.GetNamespace()))
return admission.NewForbidden(a, fmt.Errorf("Unable to create new content in namespace %s because it is being terminated.", a.GetNamespace()))
}
// NewLifecycle creates a new namespace lifecycle admission control handler