Skip to content

Commit

Permalink
fix(application): sync app status form helm release (#1909)
Browse files Browse the repository at this point in the history
Co-authored-by: xdonggao <[email protected]>
  • Loading branch information
GaoXiaodong and xdonggao authored May 6, 2022
1 parent 8c250ac commit 4fc0183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/application/controller/app/app_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func (c *Controller) handlePhase(ctx context.Context, key string, cachedApp *cac
}

func (c *Controller) syncAppFromRelease(ctx context.Context, cachedApp *cachedApp, app *applicationv1.App) (*applicationv1.App, error) {
if hasSynced(app) {
if app.Status.Phase == applicationv1.AppPhaseSucceeded && hasSynced(app) {
return app, nil
}
defer func() {
Expand Down

0 comments on commit 4fc0183

Please sign in to comment.