diff --git a/pkg/util/kubernetes.go b/pkg/util/kubernetes.go index 7476baf8d..7abe91d9a 100644 --- a/pkg/util/kubernetes.go +++ b/pkg/util/kubernetes.go @@ -588,6 +588,8 @@ func EnsureOwnerReference(meta metav1.ObjectMeta, owner *core.ObjectReference) m meta.OwnerReferences[fi].Kind = owner.Kind meta.OwnerReferences[fi].Name = owner.Name meta.OwnerReferences[fi].UID = owner.UID - meta.OwnerReferences[fi].BlockOwnerDeletion = types.TrueP() + if meta.OwnerReferences[fi].BlockOwnerDeletion == nil { + meta.OwnerReferences[fi].BlockOwnerDeletion = types.FalseP() + } return meta }