Skip to content

Commit

Permalink
Ensure the status metric is set after a restart
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Mar 28, 2019
1 parent fbdf38e commit 48d9a0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func (c *Controller) advanceCanary(name string, namespace string, skipLivenessCh
}

if !shouldAdvance {
c.recorder.SetStatus(cd, cd.Status.Phase)
return
}

Expand Down

0 comments on commit 48d9a0d

Please sign in to comment.