Increase controller sync time for namespace cleanup

This commit is contained in:
derekwaynecarr
2015-03-24 10:44:34 -04:00
parent ee53dfc741
commit 84c9709299
3 changed files with 4 additions and 4 deletions

View File

@@ -159,7 +159,7 @@ func (nm *NamespaceManager) syncNamespace(namespace api.Namespace) (err error) {
}
// if there is a deletion timestamp, and the status is not terminating, then update status
if namespace.DeletionTimestamp != nil && namespace.Status.Phase != api.NamespaceTerminating {
if !namespace.DeletionTimestamp.IsZero() && namespace.Status.Phase != api.NamespaceTerminating {
newNamespace := api.Namespace{}
newNamespace.ObjectMeta = namespace.ObjectMeta
newNamespace.Status = namespace.Status