mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #2149 from claire921/r_health
Refactor Status.String() in health pkg
This commit is contained in:
		@@ -103,10 +103,12 @@ func findPortByName(container api.Container, portName string) int {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (s Status) String() string {
 | 
			
		||||
	if s == Healthy {
 | 
			
		||||
	switch s {
 | 
			
		||||
	case Healthy:
 | 
			
		||||
		return "healthy"
 | 
			
		||||
	} else if s == Unhealthy {
 | 
			
		||||
	case Unhealthy:
 | 
			
		||||
		return "unhealthy"
 | 
			
		||||
	default:
 | 
			
		||||
		return "unknown"
 | 
			
		||||
	}
 | 
			
		||||
	return "unknown"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user