Merge pull request #74096 from oomichi/cleanup-e2e-framework-ingress

Remove unused GetDefaultBackendNodePort()
This commit is contained in:
Kubernetes Prow Robot 2019-02-25 11:33:32 -08:00 committed by GitHub
commit a826e80ca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -732,14 +732,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.