Skip to content

Commit 0afb311

Browse files
committed
don't test ingress addon on none
1 parent a13e5e5 commit 0afb311

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/integration/addons_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ func TestAddons(t *testing.T) {
4040
ctx, cancel := context.WithTimeout(context.Background(), Minutes(40))
4141
defer Cleanup(t, profile, cancel)
4242

43-
args := append([]string{"start", "-p", profile, "--wait=false", "--memory=2600", "--alsologtostderr", "--addons=ingress", "--addons=registry", "--addons=metrics-server", "--addons=helm-tiller", "--addons=olm"}, StartArgs()...)
43+
args := append([]string{"start", "-p", profile, "--wait=false", "--memory=2600", "--alsologtostderr", "--addons=registry", "--addons=metrics-server", "--addons=helm-tiller", "--addons=olm"}, StartArgs()...)
44+
if !NoneDriver() { // none doesn't support ingress
45+
args = append("--addons=ingress")
46+
}
4447
rr, err := Run(t, exec.CommandContext(ctx, Target(), args...))
4548
if err != nil {
4649
t.Fatalf("%s failed: %v", rr.Command(), err)

0 commit comments

Comments
 (0)