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
commit 1d7829a964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}