We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a141267 commit 2c105edCopy full SHA for 2c105ed
pkg/component/runtime/service.go
@@ -626,9 +626,10 @@ func (s *serviceRuntime) sendObserved() {
626
func (s *serviceRuntime) compState(state client.UnitState, missedCheckins int) {
627
name := s.name()
628
msg := stateUnknownMessage
629
- if state == client.UnitStateHealthy {
+ switch state {
630
+ case client.UnitStateHealthy:
631
msg = fmt.Sprintf("Healthy: communicating with %s service", name)
- } else if state == client.UnitStateDegraded {
632
+ case client.UnitStateDegraded:
633
if missedCheckins == 1 {
634
msg = fmt.Sprintf("Degraded: %s service missed 1 check-in", name)
635
} else {
0 commit comments