Skip to content

Commit 87111f1

Browse files
committed
Align error message with others
1 parent 802c71e commit 87111f1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

kubetest2-gke/deployer/deployer.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ const (
5757
unrestricted privateClusterAccessLevel = "unrestricted"
5858
)
5959

60-
type subnetMode string
61-
6260
var (
6361
// poolRe matches instance group URLs of the form `https://www.googleapis.com/compute/v1/projects/some-project/zones/a-zone/instanceGroupManagers/gke-some-cluster-some-pool-90fcb815-grp`
6462
// or `https://www.googleapis.com/compute/v1/projects/some-project/zones/a-zone/instanceGroupManagers/gk3-some-cluster-some-pool-90fcb815-grp` for GKE in Autopilot mode.

kubetest2-gke/deployer/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (d *Deployer) VerifyNetworkFlags() error {
7575
}
7676

7777
if !d.UseCustomSubnetMode {
78-
return errors.New("multi-project deployments have to use custom subnet mode")
78+
return errors.New("the 'auto' subnet mode cannot be used for multi-project profile")
7979
}
8080
}
8181

0 commit comments

Comments
 (0)