Skip to content

Commit d472c37

Browse files
author
jacksontong
committed
bugfix for GaugeApplicationDaemonsetUpgradeFailed
1 parent 37bb849 commit d472c37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/application/controller/app/app_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,15 @@ func (c *Controller) syncItem(key string) error {
284284
metrics.GaugeApplicationUpgradeFailed.WithLabelValues(app.Spec.TargetCluster, app.Name).Set(0)
285285
metrics.GaugeApplicationRollbackFailed.WithLabelValues(app.Spec.TargetCluster, app.Name).Set(0)
286286
metrics.GaugeApplicationSyncFailed.WithLabelValues(app.Spec.TargetCluster, app.Name).Set(0)
287+
metrics.GaugeApplicationDaemonsetUpgradeFailed.WithLabelValues(app.Spec.TargetCluster, app.Name).Set(0)
287288
// If err is not nil, do not update object status when phase is Terminating.
288289
// DeletionTimestamp is not empty and object will be deleted when you request updateStatus
289290
} else if app.Status.Phase == "Isolated" {
290291
metrics.GaugeApplicationInstallFailed.WithLabelValues(app.Spec.TargetCluster, app.Name).Set(0)
291292
metrics.GaugeApplicationUpgradeFailed.WithLabelValues(app.Spec.TargetCluster, app.Name).Set(0)
292293
metrics.GaugeApplicationRollbackFailed.WithLabelValues(app.Spec.TargetCluster, app.Name).Set(0)
293294
metrics.GaugeApplicationSyncFailed.WithLabelValues(app.Spec.TargetCluster, app.Name).Set(0)
295+
metrics.GaugeApplicationDaemonsetUpgradeFailed.WithLabelValues(app.Spec.TargetCluster, app.Name).Set(0)
294296
} else {
295297
cachedApp := c.cache.getOrCreate(key)
296298
err = c.processUpdate(ctx, cachedApp, app, key)

0 commit comments

Comments
 (0)