mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
clean up unused function 'GetServiceHealthCheckPathPort'
This commit is contained in:
parent
bd2776e0c9
commit
729bd22e24
@ -91,15 +91,3 @@ func NeedsHealthCheck(service *v1.Service) bool {
|
|||||||
}
|
}
|
||||||
return ExternalPolicyLocal(service)
|
return ExternalPolicyLocal(service)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetServiceHealthCheckPathPort returns the path and nodePort programmed into the Cloud LB Health Check
|
|
||||||
func GetServiceHealthCheckPathPort(service *v1.Service) (string, int32) {
|
|
||||||
if !NeedsHealthCheck(service) {
|
|
||||||
return "", 0
|
|
||||||
}
|
|
||||||
port := service.Spec.HealthCheckNodePort
|
|
||||||
if port == 0 {
|
|
||||||
return "", 0
|
|
||||||
}
|
|
||||||
return "/healthz", port
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user