Skip to content

Commit 0f714d6

Browse files
committed
Use an explicit load balancer type service.
1 parent c03a5d6 commit 0f714d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/load_balancer_source_ranges_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func TestLoadBalancingSourceRanges(t *testing.T) {
5050
depl := newDeployment(namePrefix + uniuri.NewLen(4))
5151
depl.Spec.Mode = api.NewMode(api.DeploymentModeCluster)
5252
depl.Spec.Image = util.NewString("arangodb/arangodb:latest")
53+
depl.Spec.ExternalAccess.Type = api.NewExternalAccessType(api.ExternalAccessTypeLoadBalancer)
5354
depl.Spec.ExternalAccess.LoadBalancerSourceRanges = append(depl.Spec.ExternalAccess.LoadBalancerSourceRanges, "1.2.3.0/24", "0.0.0.0/0")
5455

5556
// Create deployment
@@ -81,7 +82,7 @@ func TestLoadBalancingSourceRanges(t *testing.T) {
8182

8283
// Now let's use the k8s api to check if the source ranges are present in
8384
// the external service spec:
84-
svcs := k8sutil.NewServiceCache(kubecli.CoreV1().Services(ns))
85+
svcs := kubecli.CoreV1().Services(ns)
8586
eaServiceName := k8sutil.CreateDatabaseExternalAccessServiceName(depl.GetName())
8687
// Just in case, give the service some time to appear, it should usually
8788
// be there already, when the deployment is ready, however, we have had

0 commit comments

Comments
 (0)