From 4205fd7c6f2ac4206ced3f8dab85206028ab65b7 Mon Sep 17 00:00:00 2001 From: Tomas Nozicka Date: Wed, 31 May 2017 09:21:02 +0200 Subject: [PATCH] Fix standardFinalizers - add missing metav1.FinalizerDeleteDependents --- pkg/api/helper/helpers.go | 1 + staging/src/k8s.io/client-go/pkg/api/helper/helpers.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/api/helper/helpers.go b/pkg/api/helper/helpers.go index 95b8f8aa5ae2f..46916b785889d 100644 --- a/pkg/api/helper/helpers.go +++ b/pkg/api/helper/helpers.go @@ -222,6 +222,7 @@ func IsServiceIPRequested(service *api.Service) bool { var standardFinalizers = sets.NewString( string(api.FinalizerKubernetes), metav1.FinalizerOrphanDependents, + metav1.FinalizerDeleteDependents, ) // HasAnnotation returns a bool if passed in annotation exists diff --git a/staging/src/k8s.io/client-go/pkg/api/helper/helpers.go b/staging/src/k8s.io/client-go/pkg/api/helper/helpers.go index 068877d5e2d22..6890a705c9ddd 100644 --- a/staging/src/k8s.io/client-go/pkg/api/helper/helpers.go +++ b/staging/src/k8s.io/client-go/pkg/api/helper/helpers.go @@ -222,6 +222,7 @@ func IsServiceIPRequested(service *api.Service) bool { var standardFinalizers = sets.NewString( string(api.FinalizerKubernetes), metav1.FinalizerOrphanDependents, + metav1.FinalizerDeleteDependents, ) // HasAnnotation returns a bool if passed in annotation exists