From 729bd22e24d8bd6dadb9a662b6eb841a998b532b Mon Sep 17 00:00:00 2001 From: 0xff-dev Date: Wed, 6 Jul 2022 16:10:01 +0800 Subject: [PATCH] clean up unused function 'GetServiceHealthCheckPathPort' --- pkg/api/v1/service/util.go | 12 ------------ 1 file changed, 12 deletions(-) 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 -}