Skip to content

Commit

Permalink
Removed more dev changes
Browse files Browse the repository at this point in the history
  • Loading branch information
diogo-nogueira-freiheit committed Nov 13, 2024
1 parent 9884266 commit 0597bf4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions 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 @@ -278,7 +278,6 @@ func (a *ArgoAppProcessor) DeleteArgoApps(ctx context.Context, argoApps map[stri
deleteAppSpan.SetTag("application", toDelete[i].Name)
deleteAppSpan.SetTag("namespace", toDelete[i].Namespace)
deleteAppSpan.SetTag("operation", "delete")

_, err := a.ApplicationClient.Delete(ctx, &application.ApplicationDeleteRequest{
Cascade: nil,
PropagationPolicy: nil,
Expand All @@ -293,6 +292,7 @@ func (a *ArgoAppProcessor) DeleteArgoApps(ctx context.Context, argoApps map[stri
if err != nil {
logger.FromContext(ctx).Error("deleting application: "+toDelete[i].Name, zap.Error(err))
}
deleteAppSpan.Finish()
}
}

Expand Down
7 changes: 7 additions & 0 deletions services/rollout-service/pkg/argo/argo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,13 @@ func (a *mockArgoProcessor) DeleteArgoApps(ctx context.Context, argoApps map[str
}
toDelete = append(toDelete, argoApp)
}

for i := range toDelete {
a.ApplicationClient.Delete(ctx, &application.ApplicationDeleteRequest{
Name: conversion.FromString(toDelete[i].Name),
})

}
}

func (a *mockArgoProcessor) GetManageArgoAppsFilter() []string {
Expand Down

0 comments on commit 0597bf4

Please sign in to comment.