Skip to content

Commit

Permalink
Rolled back incorrect behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
diogo-nogueira-freiheit committed Nov 13, 2024
1 parent 2de3056 commit 80f6e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/rollout-service/pkg/argo/argo.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func calculateFinalizers() []string {
}

func (a *ArgoAppProcessor) DeleteArgoApp(ctx context.Context, app *v1alpha1.Application, deployment *api.Deployment) {
if app != nil && deployment != nil && deployment.UndeployVersion {
if app != nil && deployment == nil {
deleteAppSpan, ctx := tracer.StartSpanFromContext(ctx, "DeleteApplication")
defer deleteAppSpan.Finish()
deleteAppSpan.SetTag("application", app.Name)
Expand Down

0 comments on commit 80f6e29

Please sign in to comment.