@@ -36,6 +36,7 @@ import (
3636 "k8s.io/kops/tests/e2e/kubetest2-kops/do"
3737 "k8s.io/kops/tests/e2e/kubetest2-kops/gce"
3838 "k8s.io/kops/tests/e2e/pkg/kops"
39+ "k8s.io/kops/tests/e2e/pkg/util"
3940 "k8s.io/kops/tests/e2e/pkg/version"
4041 "sigs.k8s.io/kubetest2/pkg/exec"
4142)
@@ -79,13 +80,12 @@ func (d *deployer) Up() error {
7980
8081 adminAccess := d .AdminAccess
8182 if adminAccess == "" {
82- adminAccess = "0.0.0.0/0"
83- //publicIP, err := util.ExternalIPRange()
84- //if err != nil {
85- // return err
86- //}
87- //
88- //adminAccess = publicIP
83+ publicIP , err := util .ExternalIPRange ()
84+ if err != nil {
85+ return err
86+ }
87+
88+ adminAccess = publicIP
8989 }
9090
9191 zones , err := d .zones ()
@@ -193,7 +193,9 @@ func (d *deployer) createCluster(zones []string, adminAccess string, yes bool) e
193193 args = appendIfUnset (args , "--master-size" , "c5.large" )
194194 }
195195 case "azure" :
196+ // TODO: Check why Azure requires --network-cidr
196197 args = appendIfUnset (args , "--network-cidr" , "10.0.0.0/16" )
198+ args = appendIfUnset (args , "--cloud-labels" , "DO-NOT-DELETE=kOps" )
197199 args = appendIfUnset (args , "--control-plane-size" , "Standard_D4s_v3" )
198200 args = appendIfUnset (args , "--node-size" , "Standard_D4s_v3" )
199201 args = appendIfUnset (args , "--azure-admin-user" , "ubuntu" )
0 commit comments