Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksontong committed Apr 5, 2024
1 parent 6543617 commit 076ad96
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkg/application/controller/app/action/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"fmt"
"strconv"

apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"

Expand Down Expand Up @@ -173,11 +172,9 @@ func Upgrade(ctx context.Context,
}).String(),
})
if err != nil {
if !apierrors.IsNotFound(err) {
return nil, err
}

// change status to AppPhaseUpgradingDaemonset
return nil, err
}
if len(ujs.Items) == 0 {
if updateStatusFunc != nil {
newStatus := app.Status.DeepCopy()
newStatus.Phase = applicationv1.AppPhaseUpgradingDaemonset
Expand Down

0 comments on commit 076ad96

Please sign in to comment.