diff --git a/server/application/application.go b/server/application/application.go index d2e05a2e94e90..305b577d0458c 100644 --- a/server/application/application.go +++ b/server/application/application.go @@ -1178,6 +1178,12 @@ func getResourceEventPayload( actualState.Manifest = "" } + if a.ObjectMeta.DeletionTimestamp != nil { + // resource should be deleted in case if application in process of deletion + desiredState.CompiledManifest = "" + actualState.Manifest = "" + } + if a.Status.OperationState != nil { syncStarted = a.Status.OperationState.StartedAt syncFinished = a.Status.OperationState.FinishedAt