clean up unused function 'GetServiceHealthCheckPathPort'

This commit is contained in:
0xff-dev 2022-07-06 16:10:01 +08:00
parent bd2776e0c9
commit 729bd22e24

View File

@ -91,15 +91,3 @@ func NeedsHealthCheck(service *v1.Service) bool {
}
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
}