File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,6 @@ func GetIngressPoint(ing *v1.LoadBalancerIngress) string {
94
94
return host
95
95
}
96
96
97
- // EnableAndDisableInternalLB returns two functions for enabling and disabling the internal load balancer
98
- // setting for the supported cloud providers (currently GCE/GKE and Azure) and empty functions for others.
99
- func EnableAndDisableInternalLB () (enable func (svc * v1.Service ), disable func (svc * v1.Service )) {
100
- return framework .TestContext .CloudConfig .Provider .EnableAndDisableInternalLB ()
101
- }
102
-
103
97
// GetServiceLoadBalancerCreationTimeout returns a timeout value for creating a load balancer of a service.
104
98
func GetServiceLoadBalancerCreationTimeout (cs clientset.Interface ) time.Duration {
105
99
nodes , err := e2enode .GetReadySchedulableNodes (cs )
Original file line number Diff line number Diff line change @@ -2173,7 +2173,7 @@ var _ = SIGDescribe("Services", func() {
2173
2173
_ , err := jig .Run (nil )
2174
2174
framework .ExpectNoError (err )
2175
2175
2176
- enableILB , disableILB := e2eservice . EnableAndDisableInternalLB ()
2176
+ enableILB , disableILB := enableAndDisableInternalLB ()
2177
2177
2178
2178
isInternalEndpoint := func (lbIngress * v1.LoadBalancerIngress ) bool {
2179
2179
ingressEndpoint := e2eservice .GetIngressPoint (lbIngress )
@@ -3243,3 +3243,9 @@ func proxyMode(f *framework.Framework) (string, error) {
3243
3243
framework .Logf ("proxyMode: %s" , stdout )
3244
3244
return stdout , nil
3245
3245
}
3246
+
3247
+ // enableAndDisableInternalLB returns two functions for enabling and disabling the internal load balancer
3248
+ // setting for the supported cloud providers (currently GCE/GKE and Azure) and empty functions for others.
3249
+ func enableAndDisableInternalLB () (enable func (svc * v1.Service ), disable func (svc * v1.Service )) {
3250
+ return framework .TestContext .CloudConfig .Provider .EnableAndDisableInternalLB ()
3251
+ }
You can’t perform that action at this time.
0 commit comments