File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
pkg/application/controller/app Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments