diff --git a/pkg/utils/runtime/utils.go b/pkg/utils/runtime/utils.go index 81b85f27fc..82f5ef676b 100644 --- a/pkg/utils/runtime/utils.go +++ b/pkg/utils/runtime/utils.go @@ -94,6 +94,9 @@ func (c *runtime) IsGoingDown() bool { if err != nil { return apierrors.IsNotFound(err) } + if deployment.GetDeletionTimestamp() != nil { + return true + } if deployment.Spec.Replicas != nil { return *deployment.Spec.Replicas == 0 }