mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Remove unused GetDefaultBackendNodePort()
Since the commit f5bb5234c1
the method has never been used. This just removes it for cleanup.
This commit is contained in:
parent
596406581e
commit
680e83a811
@ -733,14 +733,6 @@ func (j *IngressTestJig) pollServiceNodePort(ns, name string, port int) error {
|
||||
return framework.PollURL(u, "", 30*time.Second, j.PollInterval, &http.Client{Timeout: IngressReqTimeout}, false)
|
||||
}
|
||||
|
||||
func (j *IngressTestJig) GetDefaultBackendNodePort() (int32, error) {
|
||||
defaultSvc, err := j.Client.CoreV1().Services(metav1.NamespaceSystem).Get(defaultBackendName, metav1.GetOptions{})
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return defaultSvc.Spec.Ports[0].NodePort, nil
|
||||
}
|
||||
|
||||
// GetIngressNodePorts returns related backend services' nodePorts.
|
||||
// Current GCE ingress controller allows traffic to the default HTTP backend
|
||||
// by default, so retrieve its nodePort if includeDefaultBackend is true.
|
||||
|
Loading…
Reference in New Issue
Block a user