Skip to content

Commit

Permalink
fix switch
Browse files Browse the repository at this point in the history
  • Loading branch information
zengmin-wish committed Apr 26, 2021
1 parent 5883c03 commit fb8e085
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/daemon/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,9 @@ func (p *Pod) GetServiceHealth(n string, defaultVal string) string {
healthStr = p.Pod.ObjectMeta.Annotations[ConsulServiceHealth]
}
switch healthStr {
case consulApi.HealthCritical:
case consulApi.HealthPassing:
case consulApi.HealthWarning:
case consulApi.HealthCritical, consulApi.HealthPassing, consulApi.HealthWarning:
return healthStr
case "":
break; // annotation not set
case "": // annotation not set
default:
logrus.Errorf("Unknown service health status '%v' ignored", healthStr)
}
Expand Down

0 comments on commit fb8e085

Please sign in to comment.