diff --git a/pkg/api/v1/service/util.go b/pkg/api/v1/service/util.go index 928c82c34f6..a88ead0d1e1 100644 --- a/pkg/api/v1/service/util.go +++ b/pkg/api/v1/service/util.go @@ -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 -}