Skip to content

Commit fd7c61e

Browse files
[application.go]: all resources event for application in deletion process should be considered as prunning
1 parent 2885cee commit fd7c61e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

server/application/application.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,12 @@ func getResourceEventPayload(
11781178
actualState.Manifest = ""
11791179
}
11801180

1181+
if a.ObjectMeta.DeletionTimestamp != nil {
1182+
// resource should be deleted in case if application in process of deletion
1183+
desiredState.CompiledManifest = ""
1184+
actualState.Manifest = ""
1185+
}
1186+
11811187
if a.Status.OperationState != nil {
11821188
syncStarted = a.Status.OperationState.StartedAt
11831189
syncFinished = a.Status.OperationState.FinishedAt

0 commit comments

Comments
 (0)