Skip to content

Commit 0753527

Browse files
Merge pull request #129 from projectsyn/fix/deadlock-error-reporting
Fix error response after operator deadlock resolution
2 parents 29bfc0f + 0c47ca1 commit 0753527

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/argocd/argocd.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ func Apply(ctx context.Context, config *rest.Config, namespace, operatorNamespac
6868
if err == nil && len(argos.Items) > 0 {
6969
// An ArgoCD custom resource exists in our namespace
7070
err = fixArgoOperatorDeadlock(ctx, clientset, config, namespace, operatorNamespace)
71-
return fmt.Errorf("could not fix argocd operator deadlock: %w", err)
71+
if err != nil {
72+
return fmt.Errorf("could not fix argocd operator deadlock: %w", err)
73+
}
74+
return nil
7275
}
7376

7477
deployments, err := clientset.AppsV1().Deployments(namespace).List(ctx, metav1.ListOptions{

0 commit comments

Comments
 (0)