mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 22:20:18 +00:00
clean up unused function 'GetServiceHealthCheckPathPort'
This commit is contained in:
@@ -91,15 +91,3 @@ func NeedsHealthCheck(service *v1.Service) bool {
|
|||||||
}
|
}
|
||||||
return ExternalPolicyLocal(service)
|
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
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user