Merge pull request #110975 from 0xff-dev/cleanup-unused-func

clean up unused function 'GetServiceHealthCheckPathPort'
This commit is contained in:
Kubernetes Prow Robot
2022-07-08 18:03:57 -07:00
committed by GitHub

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
}