Skip to content

Commit

Permalink
[application.go]: all resources event for application in deletion pro…
Browse files Browse the repository at this point in the history
…cess should be considered as prunning
  • Loading branch information
oleksandr-codefresh committed May 20, 2022
1 parent 2885cee commit fd7c61e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd7c61e

Please sign in to comment.