From a26be15e57dfb929c61e318a4fb2f15365ac2c2e Mon Sep 17 00:00:00 2001 From: Craig Jellick Date: Mon, 15 Jan 2018 10:25:17 -0700 Subject: [PATCH] Allow namespaces to have finalizers Now the we are properly formatting finalizer names, they can successfully be added to namespaces. This has is no longer needed. --- lifecycle/object.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lifecycle/object.go b/lifecycle/object.go index 2c7731c35..9b5b22760 100644 --- a/lifecycle/object.go +++ b/lifecycle/object.go @@ -171,10 +171,6 @@ func (o *objectLifecycleAdapter) addFinalizer(obj runtime.Object) (runtime.Objec return nil, err } - if o.objectClient.GroupVersionKind().Kind == "Namespace" { - return obj, nil - } - if slice.ContainsString(metadata.GetFinalizers(), o.constructFinalizerKey()) { return obj, nil }