Skip to content

Commit 97c8d80

Browse files
GaoXiaodongxdonggao
and
xdonggao
authored
fix(application): rm app phase chart fetched (#1763)
Co-authored-by: xdonggao <[email protected]>
1 parent 2419eb3 commit 97c8d80

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

Diff for: api/application/types.go

-3
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,6 @@ const (
226226
type AppPhase string
227227

228228
const (
229-
// ChartFetched means the chart to which the App refers
230-
// has been fetched successfully
231-
AppPhaseChartFetched AppPhase = "ChartFetched"
232229
// ChartFetchedFailed means the chart to which the App
233230
// refers could not be fetched.
234231
AppPhaseChartFetchFailed AppPhase = "ChartFetchFailed"

Diff for: api/application/v1/types.go

-3
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,6 @@ const (
226226
type AppPhase string
227227

228228
const (
229-
// ChartFetched means the chart to which the App refers
230-
// has been fetched successfully
231-
AppPhaseChartFetched AppPhase = "ChartFetched"
232229
// ChartFetchedFailed means the chart to which the App
233230
// refers could not be fetched.
234231
AppPhaseChartFetchFailed AppPhase = "ChartFetchFailed"

Diff for: pkg/application/controller/app/action/pull.go

-8
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ func Pull(ctx context.Context,
6161
updateStatusFunc(ctx, app, &app.Status, newStatus)
6262
return destfile, err
6363
}
64-
newStatus.Phase = applicationv1.AppPhaseChartFetched
65-
newStatus.Message = ""
66-
newStatus.Reason = ""
67-
newStatus.LastTransitionTime = metav1.Now()
68-
_, err := updateStatusFunc(ctx, app, &app.Status, newStatus)
69-
if err != nil {
70-
return destfile, err
71-
}
7264
}
7365
return destfile, err
7466
}

Diff for: pkg/application/controller/app/app_controller.go

-2
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,6 @@ func (c *Controller) handlePhase(ctx context.Context, key string, cachedApp *cac
341341
return c.syncAppFromRelease(ctx, cachedApp, app)
342342
case applicationv1.AppPhaseRollbackFailed:
343343
break
344-
case applicationv1.AppPhaseChartFetched:
345-
break
346344
case applicationv1.AppPhaseChartFetchFailed:
347345
break
348346
case applicationv1.AppPhaseSyncFailed:

0 commit comments

Comments
 (0)